Skip to content

Commit

Permalink
Fix Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Aug 10, 2023
1 parent 7c8b47b commit 1fd732a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Filters/src/Model/Mapper/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function supports(\ReflectionNamedType $type): bool
public function setValue(FilterInterface $filter, \ReflectionProperty $property, mixed $value): void
{
$type = $property->getType();
if ($type === null) {
if ($type === null || !$type instanceof \ReflectionNamedType) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Filters/src/Model/Schema/SchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
final class SchemaProvider implements SchemaProviderInterface
{
/**
* @var array<class-string: array>
* @var array<class-string, array>
*/
private array $setters = [];

/**
* @var array<class-string: array>
* @var array<class-string, array>
*/
private array $schema = [];

Expand Down

0 comments on commit 1fd732a

Please sign in to comment.