File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 3232use PHPStan \Type \Constant \ConstantStringType ;
3333use PHPStan \Type \ConstantScalarType ;
3434use PHPStan \Type \Enum \EnumCaseObjectType ;
35+ use PHPStan \Type \ErrorType ;
3536use PHPStan \Type \FloatType ;
3637use PHPStan \Type \Generic \GenericClassStringType ;
3738use PHPStan \Type \Generic \GenericObjectType ;
@@ -79,6 +80,7 @@ final class ApiInstanceofTypeRule implements Rule
7980 IntersectionType::class => null ,
8081 ConstantScalarType::class => 'Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues() ' ,
8182 ObjectShapeType::class => 'Type::isObject() and Type::hasProperty() ' ,
83+ ErrorType::class => 'Type::isError() ' ,
8284
8385 // accessory types
8486 NonEmptyArrayType::class => 'Type::isIterableAtLeastOnce() ' ,
You can’t perform that action at this time.
0 commit comments