Skip to content

Commit

Permalink
Extended type of SimpleContainer init parameters from array to iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Aug 12, 2024
1 parent d5f72a3 commit 864c10c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimpleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class SimpleContainer extends Container

/**
* @phpcs:ignore SlevomatCodingStandard.TypeHints.DisallowArrayTypeHintSyntax.DisallowedArrayTypeHintSyntax
* @param NamedType[] $types
* @param iterable<NamedType> $types
* @phpcs:ignore SlevomatCodingStandard.TypeHints.DisallowArrayTypeHintSyntax.DisallowedArrayTypeHintSyntax
* @param TypesystemDirective[] $directives
* @param iterable<Directive> $directives
*/
public function __construct(array $types, array $directives)
public function __construct(iterable $types, iterable $directives)
{
self::$builtInTypes = [
'ID' => self::ID(),
Expand Down

0 comments on commit 864c10c

Please sign in to comment.