diff --git a/src/Uuid.php b/src/Uuid.php index 0da5200..74a3d5a 100644 --- a/src/Uuid.php +++ b/src/Uuid.php @@ -99,7 +99,7 @@ class Uuid implements UuidInterface, \JsonSerializable /** * - * @var UuidFactory + * @var UuidFactoryInterface */ private static $factory = null; @@ -725,7 +725,7 @@ class Uuid implements UuidInterface, \JsonSerializable return self::$factory; } - public static function setFactory(UuidFactory $factory) + public static function setFactory(UuidFactoryInterface $factory) { self::$factory = $factory; } diff --git a/tests/PeclUuidTest.php b/tests/PeclUuidTest.php new file mode 100644 index 0000000..a5cf9f0 --- /dev/null +++ b/tests/PeclUuidTest.php @@ -0,0 +1,17 @@ +