Skip to content

Commit

Permalink
Merge pull request #667 from tienvx/phpstan-max-selector
Browse files Browse the repository at this point in the history
refactor: PHPStan max level > Fix wrong parameter type
  • Loading branch information
tienvx authored Oct 1, 2024
2 parents cb805f2 + e8eb62e commit c402b62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public function __construct(
*/
public function jsonSerialize(): array
{
return array_filter(get_object_vars($this), fn (null|string|bool $value) => null !== $value);
return array_filter(get_object_vars($this), fn (mixed $value) => is_bool($value) || is_string($value));
}
}

0 comments on commit c402b62

Please sign in to comment.