diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 402c2ac..e2f6c78 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + DegradedUuid @@ -38,14 +38,18 @@ BigNumberTimeConverter + + + Uuid + + - + $calculator $dceSecurityGenerator $numberConverter $timeConverter $timeGenerator - $timeProvider @@ -60,6 +64,11 @@ uuid_parse + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + $this @@ -72,6 +81,11 @@ unserialize + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + $this @@ -79,6 +93,11 @@ $this + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + shell_exec('id -g') @@ -92,13 +111,15 @@ $macs - - $macs - $macs[] + + + Uuid + + $this @@ -118,6 +139,31 @@ $this + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + + + + parent::__construct($fields, $numberConverter, $codec, $timeConverter) + + unserialize @@ -139,6 +185,21 @@ + + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + self::getFactory() + getFactory getFactory diff --git a/psalm.xml b/psalm.xml index a871b73..0489226 100644 --- a/psalm.xml +++ b/psalm.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorLevel="1" cacheDirectory="./build/cache/psalm" - errorBaseline="./psalm-baseline.xml"> + errorBaseline="psalm-baseline.xml"> diff --git a/src/Uuid.php b/src/Uuid.php index 7f9958e..ed7093f 100644 --- a/src/Uuid.php +++ b/src/Uuid.php @@ -403,6 +403,9 @@ class Uuid implements UuidInterface /** * Returns the factory used to create UUIDs + * + * @deprecated ramsey/uuid version 5 will no longer support getting a + * factory instance from the base Ramsey\Uuid\Uuid class. */ public static function getFactory(): UuidFactoryInterface { @@ -416,6 +419,11 @@ class Uuid implements UuidInterface /** * Sets the factory used to create UUIDs * + * @deprecated ramsey/uuid version 5 will no longer support setting a + * factory instance on the base Ramsey\Uuid\Uuid class. If you need to + * customize the properties used to build a UUID, use one of the + * dedicated factories that version 5 will introduce. + * * @param UuidFactoryInterface $factory A factory that will be used by this * class to create UUIDs */