Skip to content

Commit

Permalink
Upgrade Psalm up to v5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Apr 10, 2023
1 parent ffb8000 commit d7f2978
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 @@ -40,7 +40,7 @@
"mockery/mockery": "^1.5",
"nyholm/psr7": "^1.5",
"phpunit/phpunit": "^9.5.20",
"vimeo/psalm": "^4.27"
"vimeo/psalm": "^5.9"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions psalm.xml
Expand Up @@ -11,6 +11,8 @@
findUnusedVariablesAndParams="true"
ensureArrayStringOffsetsExist="true"
addParamDefaultToDocblockType="true"
findUnusedBaselineEntry="true"
findUnusedCode="false"
>
<projectFiles>
<directory name="src" />
Expand Down
1 change: 1 addition & 0 deletions src/Model/Schema/AttributeMapper.php
Expand Up @@ -38,6 +38,7 @@ public function map(FilterInterface $filter, InputInterface $input): array
$class = new \ReflectionClass($filter);

foreach ($class->getProperties() as $property) {
/** @var object $attribute */
foreach ($this->reader->getPropertyMetadata($property) as $attribute) {
if ($attribute instanceof AbstractInput) {
$this->setValue($filter, $property, $attribute->getValue($input, $property));
Expand Down

0 comments on commit d7f2978

Please sign in to comment.