diff --git a/src/Faker/Container/Container.php b/src/Faker/Container/Container.php index 2dd2d974d7..409a7406a0 100644 --- a/src/Faker/Container/Container.php +++ b/src/Faker/Container/Container.php @@ -16,9 +16,9 @@ final class Container implements ContainerInterface /** * @var array */ - private $definitions; + private array $definitions; - private $services = []; + private array $services = []; /** * Create a container object with a set of definitions. The array value MUST diff --git a/src/Faker/Container/ContainerBuilder.php b/src/Faker/Container/ContainerBuilder.php index 3fb335fff5..e5105c9d5c 100644 --- a/src/Faker/Container/ContainerBuilder.php +++ b/src/Faker/Container/ContainerBuilder.php @@ -22,7 +22,7 @@ final class ContainerBuilder /** * @var array */ - private $definitions = []; + private array $definitions = []; /** * @param callable|object|string $value