Skip to content

Commit

Permalink
Fix after PHPStan update
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 14, 2024
1 parent bb3e671 commit 282a698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Type/Symfony/data/input_bag.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
assertType('bool|float|int|string|null', $bag->get('foo', null));
assertType('bool|float|int|string', $bag->get('foo', ''));
assertType('bool|float|int|string', $bag->get('foo', 'baz'));
assertType('array<string, array|bool|float|int|string>', $bag->all());
assertType('array', $bag->all('bar'));
assertType('array<string, array<mixed>|bool|float|int|string>', $bag->all());
assertType('array<mixed>', $bag->all('bar'));
2 changes: 1 addition & 1 deletion tests/Type/Symfony/data/property_accessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$array = [1 => 'ea'];
$propertyAccessor->setValue($array, 'foo', 'bar');
assertType('array', $array);
assertType('array<mixed>', $array);

$object = new \stdClass();
$propertyAccessor->setValue($object, 'foo', 'bar');
Expand Down

0 comments on commit 282a698

Please sign in to comment.