Skip to content

Commit

Permalink
fix: ignore some psalm errors in our deserialization code
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jan 19, 2024
1 parent 87eed1a commit 5691cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Values/JobStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public function __construct(
/**
* @param array<string, scalar> $data
* @throws \InvalidArgumentException
* @psalm-suppress PossiblyUndefinedArrayOffset
* @psalm-suppress ArgumentTypeCoercion
* @psalm-suppress PossiblyInvalidArgument
*/
public static function fromBeanstalkArray(array $data): self
{
Expand Down
1 change: 1 addition & 0 deletions src/Values/TubeStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function __construct(
/**
* @param array<string, string|int|bool|float> $data
* @psalm-suppress ArgumentTypeCoercion
* @psalm-suppress PossiblyUndefinedArrayOffset
*/
public static function fromBeanstalkArray(array $data): self
{
Expand Down

0 comments on commit 5691cf2

Please sign in to comment.