Skip to content

Commit

Permalink
TECH Suppress psalm incorrect complain
Browse files Browse the repository at this point in the history
  • Loading branch information
sibprogrammer committed Aug 3, 2023
1 parent ca5d650 commit 2de56a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Api/AbstractStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function initScalarProperties($apiResponse, array $properties): void
$classPropertyName = current($property);
$value = $apiResponse->{key($property)};
} else {
/** @psalm-suppress PossiblyInvalidArgument */
$classPropertyName = $this->underToCamel(str_replace('-', '_', $property));
$value = $apiResponse->$property;
}
Expand Down

0 comments on commit 2de56a4

Please sign in to comment.