Skip to content

Commit

Permalink
Fix type by casting
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown committed Sep 21, 2024
1 parent 135b08c commit 3fedf9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DelegatingContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct(ServiceProviderInterface $provider, PsrContainerInte
*/
public function get($id)
{
$id = (string) $id;

Check failure on line 42 in src/DelegatingContainer.php

View workflow job for this annotation

GitHub Actions / PHP 8.0

RedundantCast

src/DelegatingContainer.php:42:15: RedundantCast: Redundant cast to string (see https://psalm.dev/262)

Check failure on line 42 in src/DelegatingContainer.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

RedundantCast

src/DelegatingContainer.php:42:15: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
static $stack = [];

if (array_key_exists($id, $stack)) {

Check failure on line 45 in src/DelegatingContainer.php

View workflow job for this annotation

GitHub Actions / PHP 8.0

MixedArgument

src/DelegatingContainer.php:45:35: MixedArgument: Argument 2 of array_key_exists cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)

Check failure on line 45 in src/DelegatingContainer.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

MixedArgument

src/DelegatingContainer.php:45:35: MixedArgument: Argument 2 of array_key_exists cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
Expand Down

0 comments on commit 3fedf9a

Please sign in to comment.