Skip to content

Commit

Permalink
use psalm 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Sep 23, 2023
1 parent 46ef5e7 commit 00b0aee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -30,7 +30,7 @@
},
"require-dev": {
"phpunit/phpunit": "~9.0",
"vimeo/psalm": "~4.4",
"vimeo/psalm": "~5.15",
"innmind/coding-standard": "~2.0"
}
}
2 changes: 2 additions & 0 deletions psalm.xml
Expand Up @@ -2,6 +2,8 @@
<psalm
errorLevel="1"
resolveFromConfigFile="true"
findUnusedCode="false"
findUnusedBaselineEntry="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down
1 change: 1 addition & 0 deletions src/Parser/Walker.php
Expand Up @@ -69,6 +69,7 @@ public function __invoke(Sequence $lines): Sequence
})
->aggregate(static function(UserAgent|Allow|Disallow|CrawlDelay $a, $b) {
if ($a instanceof UserAgent && $b instanceof UserAgent) {
/** @var Sequence<Allow|CrawlDelay|Disallow|UserAgent> */
return Sequence::of($a->merge($b));
}

Expand Down

0 comments on commit 00b0aee

Please sign in to comment.