Skip to content

Commit

Permalink
refactor: Correct return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarlepp committed Oct 6, 2019
1 parent 69c0940 commit cbefb49
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Rest/UuidHelper.php
Expand Up @@ -12,7 +12,7 @@
use Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType;
use Ramsey\Uuid\Exception\InvalidUuidStringException;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidFactoryInterface;
use Ramsey\Uuid\UuidFactory;

/**
* Class UuidHelper
Expand All @@ -23,13 +23,14 @@
class UuidHelper
{
/**
* @return UuidFactoryInterface
* @return UuidFactory
*/
public static function getFactory(): UuidFactoryInterface
public static function getFactory(): UuidFactory
{
static $cache = null;

if ($cache === null) {
/** @var UuidFactory $factory */
$factory = clone Uuid::getFactory();
$codec = new OrderedTimeCodec($factory->getUuidBuilder());
$factory->setCodec($codec);
Expand Down

0 comments on commit cbefb49

Please sign in to comment.