mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-21 17:07:27 +03:00
Require phpstan and correct issues found up to level 2
* issues found by phpstan L0 * issues found by phpstan L1 * issues found by phpstan L2 in src/ * issues found by phpstan L2 in tests/
This commit is contained in:
@@ -39,11 +39,11 @@ class SodiumRandomGeneratorTest extends TestCase
|
||||
$uuidFactory->setRandomGenerator(new SodiumRandomGenerator());
|
||||
Uuid::setFactory($uuidFactory);
|
||||
|
||||
$uuid = Uuid::uuid4();
|
||||
|
||||
/** @var UuidFactory $actualUuidFactory */
|
||||
$actualUuidFactory = Uuid::getFactory();
|
||||
$this->assertInstanceOf(
|
||||
SodiumRandomGenerator::class,
|
||||
$uuid->getFactory()->getRandomGenerator()
|
||||
$actualUuidFactory->getRandomGenerator()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user