mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 12:14:03 +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:
parent
050057a708
commit
6d6303d276
1 changed files with 1 additions and 1 deletions
|
|
@ -73,6 +73,6 @@ class Reflection
|
||||||
return $properties[0]->value;
|
return $properties[0]->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $metaProperty::defaultValue() ?? null;
|
return $metaProperty::defaultValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue