diff --git a/src/Provider/Node/FallbackNodeProvider.php b/src/Provider/Node/FallbackNodeProvider.php index 911f471..e4e4504 100644 --- a/src/Provider/Node/FallbackNodeProvider.php +++ b/src/Provider/Node/FallbackNodeProvider.php @@ -35,7 +35,10 @@ class FallbackNodeProvider implements NodeProviderInterface $this->nodeProviders = $providers; } - public function getNode(): ?string + /** + * @inheritDoc + */ + public function getNode() { foreach ($this->nodeProviders as $provider) { if ($node = $provider->getNode()) { diff --git a/tests/Generator/RandomGeneratorFactoryTest.php b/tests/Generator/RandomGeneratorFactoryTest.php index 88cfc3e..39f404a 100644 --- a/tests/Generator/RandomGeneratorFactoryTest.php +++ b/tests/Generator/RandomGeneratorFactoryTest.php @@ -12,7 +12,7 @@ class RandomGeneratorFactoryTest extends TestCase { public function testFactoryReturnsRandomBytesGenerator(): void { - $generator = (new RandomGeneratorFactory)->getGenerator(); + $generator = (new RandomGeneratorFactory())->getGenerator(); $this->assertInstanceOf(RandomBytesGenerator::class, $generator); } diff --git a/tests/Provider/Node/SystemNodeProviderTest.php b/tests/Provider/Node/SystemNodeProviderTest.php index ae6accd..ad5485b 100644 --- a/tests/Provider/Node/SystemNodeProviderTest.php +++ b/tests/Provider/Node/SystemNodeProviderTest.php @@ -580,12 +580,12 @@ class SystemNodeProviderTest extends TestCase * * Provide a NULL to assert a function is never called. * - * @param string[]|null $fileGetContentsAssert - * @param string[]|null $globBodyAssert - * @param string[]|null $passthruBodyAssert - * @param string[]|null $constantBodyAssert - * @param string[]|null $iniGetDisableFunctionsAssert - * @param string[]|null $isReadableAssert + * @param array|array>|null $fileGetContentsAssert + * @param array|array>|null $globBodyAssert + * @param array|array>|null $passthruBodyAssert + * @param array|array>|null $constantBodyAssert + * @param array|array>|null $iniGetDisableFunctionsAssert + * @param array|array>|null $isReadableAssert */ private function assertMockFunctions( ?array $fileGetContentsAssert, diff --git a/tests/UuidFactoryTest.php b/tests/UuidFactoryTest.php index 5c0427b..0ca2540 100644 --- a/tests/UuidFactoryTest.php +++ b/tests/UuidFactoryTest.php @@ -209,14 +209,14 @@ class UuidFactoryTest extends TestCase ]; } - public function testFactoryReturnsDefaultNameGenerator() + public function testFactoryReturnsDefaultNameGenerator(): void { $factory = new UuidFactory(); $this->assertInstanceOf(DefaultNameGenerator::class, $factory->getNameGenerator()); } - public function testFactoryReturnsSetNameGenerator() + public function testFactoryReturnsSetNameGenerator(): void { $factory = new UuidFactory(); diff --git a/tests/UuidTest.php b/tests/UuidTest.php index add5537..183c435 100644 --- a/tests/UuidTest.php +++ b/tests/UuidTest.php @@ -651,7 +651,7 @@ class UuidTest extends TestCase { $factory = new UuidFactory(); $generator = new CombGenerator( - (new RandomGeneratorFactory)->getGenerator(), + (new RandomGeneratorFactory())->getGenerator(), $factory->getNumberConverter() );