Skip to content

Commit

Permalink
Merge Fix CI for PHPStan 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Sep 8, 2024
1 parent a169376 commit bcc22b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19 || ^3.8",
"mf2/mf2": "^0.5.0",
"phpstan/phpstan": "~1.11.11",
"phpstan/phpstan": "~1.12.2",
"phpunit/phpunit": "^8 || ^9 || ^10",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
Expand Down
6 changes: 2 additions & 4 deletions src/IRI.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,10 @@ protected function parse_iri(string $iri)
if ($match[1] === '') {
$match['scheme'] = null;
}
if (!isset($match[3]) || $match[3] === '') {
if ($match[3] === '') {
$match['authority'] = null;
}
if (!isset($match[5])) {
$match['path'] = '';
}
$match['path'] = '';
if (!isset($match[6]) || $match[6] === '') {
$match['query'] = null;
}
Expand Down

0 comments on commit bcc22b4

Please sign in to comment.