Are you sure the doc-type for parameter $value is correct as it would always require null to be passed?
Loading history...
17
* @return bool
18
* @noinspection RegExpSimplifiable
19
*/
20
public function check($value = null): bool
21
{
22
if (!parent::check($value)) {
23
return false;
24
}
25
26
if (is_null($value) && $this->nullable) {
27
return true;
28
}
29
30
if ((preg_match('/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/', (string)$value) !== 1))