for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace RemotelyLiving\Doorkeeper\Identification;
use Ramsey\Uuid;
final class UserId extends AbstractIdentification
{
protected function validate($value): void
if (is_int($value)) {
return;
}
if (Uuid\Uuid::isValid((string) $value)) {
if (is_string($value)) {
throw new \InvalidArgumentException("{$value} is not an integer or uuid");