Code improvements (#1649)
* use global namespace for faster lookups * phpstan level 5
This commit is contained in:
@@ -28,7 +28,7 @@ class ProjectValidator extends ConstraintValidator
|
||||
throw new UnexpectedTypeException($constraint, __NAMESPACE__ . '\Project');
|
||||
}
|
||||
|
||||
if (!is_object($value) || !($value instanceof Project)) {
|
||||
if (!\is_object($value) || !($value instanceof Project)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user