1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 21:34:05 +00:00

Remove unnecessary null coalescing

If the return value is `null`, it will return `null` anyway. If the method doesn't exist, it will throw an `Error` because of the undefined method.
This commit is contained in:
Mark 2024-12-29 07:19:07 +01:00
parent 050057a708
commit 6d6303d276
No known key found for this signature in database
GPG key ID: 79CFF7869BD39873

View file

@ -73,6 +73,6 @@ class Reflection
return $properties[0]->value; return $properties[0]->value;
} }
return $metaProperty::defaultValue() ?? null; return $metaProperty::defaultValue();
} }
} }