Psalm ignores it at error level 8.
- Code
AbstractInstantiation
Psalm reports it at each error level.
- Code
AbstractMethodCall
Psalm ignores it at error level 7 and higher.
- Code
AmbiguousConstantInheritance
Psalm ignores it at error level 4 and higher.
- Code
ArgumentTypeCoercion
Psalm ignores it at error level 8.
- Code
AssignmentToVoid
Similar to Trace, but only shows if the type does not match the expected type.
- Code
CheckType
Psalm ignores it at error level 8.
- Code
CircularReference
Psalm ignores it at error level 3 and higher.
- Code
ClassMustBeFinal
Complicated functions should be split up. Psalm reports it at each error level.
- Code
ComplexFunction
Complicated methods should be split up. Psalm reports it at each error level.
- Code
ComplexMethod
Psalm reports it at each error level.
- Code
ConfigIssue
Psalm ignores it at error level 8.
- Code
ConflictingReferenceConstraint
Psalm reports it at each error level.
- Code
ConstantDeclarationInTrait
Psalm ignores it at error level 6 and higher.
- Code
ConstructorSignatureMismatch
Psalm ignores it at error level 8.
- Code
ContinueOutsideLoop
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedClass
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedConstant
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedFunction
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedInterface
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedMethod
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedProperty
Psalm ignores it at error level 3 and higher.
- Code
DeprecatedTrait
Constructors are supposed to be called implicitly, as a result of new ClassName statement. Psalm ignores it at error level 3 and higher.
- Code
DirectConstructorCall
Psalm ignores it at error level 3 and higher.
- Code
DocblockTypeContradiction
Psalm reports it at each error level.
- Code
DuplicateArrayKey
Psalm reports it at each error level.
- Code
DuplicateClass
Psalm reports it at each error level.
- Code
DuplicateConstant
Psalm reports it at each error level.
- Code
DuplicateEnumCase
Psalm reports it at each error level.
- Code
DuplicateEnumCaseValue
Psalm reports it at each error level.
- Code
DuplicateFunction
Psalm reports it at each error level.
- Code
DuplicateMethod
Psalm reports it at each error level.
- Code
DuplicateParam
Psalm reports it at each error level.
- Code
DuplicateProperty
Psalm reports it at each error level.
- Code
EmptyArrayAccess
Psalm reports it at each error level.
- Code
ExtensionRequirementViolation
Psalm ignores it at error level 6 and higher.
- Code
FalsableReturnStatement
Psalm ignores it at error level 5 and higher.
- Code
FalseOperand
Psalm ignores it at error level 5 and higher.
- Code
ForbiddenCode
Psalm ignores it at error level 5 and higher.
- Code
IfThisIsMismatch
Psalm reports it at each error level.
- Code
ImplementationRequirementViolation
Psalm ignores it at error level 5 and higher.
- Code
ImplementedParamTypeMismatch
Psalm ignores it at error level 5 and higher.
- Code
ImplementedReturnTypeMismatch
Psalm ignores it at error level 5 and higher.
- Code
ImplicitToStringCast
Psalm reports it at each error level.
- Code
ImpureByReferenceAssignment
Psalm reports it at each error level.
- Code
ImpureFunctionCall
Psalm reports it at each error level.
- Code
ImpureMethodCall
Psalm reports it at each error level.
- Code
ImpurePropertyAssignment
Psalm reports it at each error level.
- Code
ImpurePropertyFetch
Psalm reports it at each error level.
- Code
ImpureStaticProperty
Psalm reports it at each error level.
- Code
ImpureStaticVariable
Psalm reports it at each error level.
- Code
ImpureVariable
Psalm reports it at each error level.
- Code
InaccessibleClassConstant
Psalm reports it at each error level.
- Code
InaccessibleMethod
Psalm reports it at each error level.
- Code
InaccessibleProperty
Psalm reports it only at error level 1, the strictest level.
- Code
IncompatibleTypeParameters
Psalm ignores it at error level 5 and higher.
- Code
InheritorViolation
Psalm reports it at each error level.
- Code
InterfaceInstantiation
Psalm ignores it at error level 5 and higher.
- Code
InternalClass
Psalm ignores it at error level 5 and higher.
- Code
InternalMethod
Psalm ignores it at error level 5 and higher.
- Code
InternalProperty
Psalm ignores it at error level 7 and higher.
- Code
InvalidArgument
Psalm ignores it at error level 7 and higher.
- Code
InvalidArrayAccess
Psalm ignores it at error level 7 and higher.
- Code
InvalidArrayAssignment
Psalm ignores it at error level 7 and higher.
- Code
InvalidArrayOffset
Psalm reports it at each error level.
- Code
InvalidAttribute
Psalm ignores it at error level 7 and higher.
- Code
InvalidCast
Psalm ignores it at error level 7 and higher.
- Code
InvalidCatch
Psalm ignores it at error level 7 and higher.
- Code
InvalidClass
Psalm reports it only at error level 1, the strictest level.
- Code
InvalidClassConstantType
Psalm ignores it at error level 7 and higher.
- Code
InvalidClone
Psalm ignores it at error level 7 and higher.
- Code
InvalidConstantAssignmentValue
Psalm ignores it at error level 5 and higher.
- Code
InvalidDocblock
Psalm ignores it at error level 3 and higher.
- Code
InvalidDocblockParamName
Emitted when an enum is backed by something else. Psalm reports it at each error level.
- Code
InvalidEnumBackingType
Psalm reports it at each error level.
- Code
InvalidEnumCaseValue
Psalm reports it at each error level.
- Code
InvalidEnumMethod
Psalm reports it at each error level.
- Code
InvalidExtendClass
Psalm ignores it at error level 3 and higher.
- Code
InvalidFalsableReturnType
Psalm ignores it at error level 7 and higher.
- Code
InvalidFunctionCall
Psalm reports it at each error level.
- Code
InvalidGlobal
Throwable, UnitEnum, BackedEnum). Psalm reports it at each error level.
- Code
InvalidInterfaceImplementation
Psalm ignores it at error level 7 and higher.
- Code
InvalidIterator
Psalm ignores it at error level 5 and higher.
- Code
InvalidLiteralArgument
Psalm ignores it at error level 7 and higher.
- Code
InvalidMethodCall
Psalm ignores it at error level 7 and higher.
- Code
InvalidNamedArgument
Psalm ignores it at error level 6 and higher.
- Code
InvalidNullableReturnType
Psalm ignores it at error level 5 and higher.
- Code
InvalidOperand
Psalm ignores it at error level 8.
- Code
InvalidOverride
Psalm reports it at each error level.
- Code
InvalidParamDefault
Psalm reports it at each error level.
- Code
InvalidParent
Psalm reports it at each error level.
- Code
InvalidPassByReference
Psalm ignores it at error level 7 and higher.
- Code
InvalidPropertyAssignment
Psalm ignores it at error level 7 and higher.
- Code
InvalidPropertyAssignmentValue
Psalm ignores it at error level 7 and higher.
- Code
InvalidPropertyFetch
Psalm ignores it at error level 7 and higher.
- Code
InvalidReturnStatement
Psalm ignores it at error level 7 and higher.
- Code
InvalidReturnType
Psalm ignores it at error level 5 and higher.
- Code
InvalidScalarArgument
Psalm reports it at each error level.
- Code
InvalidScope
Psalm reports it at each error level.
- Code
InvalidStaticInvocation
Psalm ignores it at error level 3 and higher.
- Code
InvalidStringClass
Psalm ignores it at error level 7 and higher.
- Code
InvalidTemplateParam
Psalm reports it at each error level.
- Code
InvalidThrow
Psalm ignores it at error level 5 and higher.
- Code
InvalidToString
Traversable needs to be implemented by implementing either IteratorAggregate or Iterator. Psalm ignores it at error level 8.
- Code
InvalidTraversableImplementation
Psalm ignores it at error level 8.
- Code
InvalidTypeImport
Psalm reports it only at error level 1, the strictest level.
- Code
LessSpecificClassConstantType
Psalm ignores it at error level 6 and higher.
- Code
LessSpecificImplementedReturnType
Psalm ignores it at error level 4 and higher.
- Code
LessSpecificReturnStatement
Psalm reports it only at error level 1, the strictest level.
- Code
LessSpecificReturnType
Psalm reports it only when a feature of the configuration enables it.
- Code
LiteralKeyUnshapedArray
Psalm reports it at each error level.
- Code
LoopInvalidation
Psalm ignores it at error level 8.
- Code
MethodSignatureMismatch
Psalm reports it at each error level.
- Code
MethodSignatureMustOmitReturnType
Psalm reports it at each error level.
- Code
MethodSignatureMustProvideReturnType
Psalm ignores it at error level 5 and higher.
- Code
MismatchingDocblockParamType
Psalm ignores it at error level 3 and higher.
- Code
MismatchingDocblockPropertyType
Psalm ignores it at error level 5 and higher.
- Code
MismatchingDocblockReturnType
Psalm ignores it at error level 3 and higher.
- Code
MissingClassConstType
Psalm ignores it at error level 3 and higher.
- Code
MissingClosureParamType
Psalm ignores it at error level 3 and higher.
- Code
MissingClosureReturnType
To prevent mistakes, Psalm will enforce that all properties should be initialized. Psalm ignores it at error level 3 and higher.
- Code
MissingConstructor
Psalm reports it at each error level.
- Code
MissingDependency
Psalm ignores it at error level 5 and higher.
- Code
MissingDocblockType
Psalm reports it at each error level.
- Code
MissingFile
Psalm reports it at each error level.
- Code
MissingImmutableAnnotation
Psalm reports it only when a feature of the configuration enables it.
- Code
MissingOverrideAttribute
Psalm ignores it at error level 3 and higher.
- Code
MissingParamType
Psalm ignores it at error level 3 and higher.
- Code
MissingPropertyType
Psalm ignores it at error level 3 and higher.
- Code
MissingReturnType
Psalm reports it at each error level.
- Code
MissingTemplateParam
Psalm reports it at each error level.
- Code
MissingThrowsDocblock
Psalm reports it only at error level 1, the strictest level.
- Code
MixedArgument
Psalm reports it only at error level 1, the strictest level.
- Code
MixedArgumentTypeCoercion
Psalm reports it only at error level 1, the strictest level.
- Code
MixedArrayAccess
Psalm reports it only at error level 1, the strictest level.
- Code
MixedArrayAssignment
Psalm reports it only at error level 1, the strictest level.
- Code
MixedArrayOffset
Psalm reports it only at error level 1, the strictest level.
- Code
MixedArrayTypeCoercion
Psalm reports it only at error level 1, the strictest level.
- Code
MixedAssignment
Psalm reports it only at error level 1, the strictest level.
- Code
MixedClone
Psalm reports it only at error level 1, the strictest level.
- Code
MixedFunctionCall
Psalm reports it only at error level 1, the strictest level.
- Code
MixedMethodCall
Psalm reports it only at error level 1, the strictest level.
- Code
MixedOperand
Psalm reports it only at error level 1, the strictest level.
- Code
MixedPropertyAssignment
Psalm reports it only at error level 1, the strictest level.
- Code
MixedPropertyFetch
Psalm reports it only at error level 1, the strictest level.
- Code
MixedPropertyTypeCoercion
Psalm reports it only at error level 1, the strictest level.
- Code
MixedReturnStatement
Psalm reports it only at error level 1, the strictest level.
- Code
MixedReturnTypeCoercion
Psalm reports it only at error level 1, the strictest level.
- Code
MixedStringOffsetAssignment
Psalm ignores it at error level 6 and higher.
- Code
MoreSpecificImplementedParamType
Psalm ignores it at error level 4 and higher.
- Code
MoreSpecificReturnType
Psalm reports it only at error level 1, the strictest level.
- Code
MutableDependency
Psalm ignores it at error level 8.
- Code
NamedArgumentNotAllowed
Psalm reports it at each error level.
- Code
NoEnumProperties
Psalm ignores it at error level 5 and higher.
- Code
NoInterfaceProperties
Psalm ignores it at error level 4 and higher.
- Code
NonInvariantDocblockPropertyType
Psalm reports it at each error level.
- Code
NonInvariantPropertyType
Psalm reports it at each error level.
- Code
NonStaticSelfCall
Psalm ignores it at error level 8.
- Code
NonVariableReferenceReturn
It is often an indication that Psalm found dead code or that documented types were not exhaustive. Psalm reports it at each error level.
- Code
NoValue
Psalm ignores it at error level 6 and higher.
- Code
NullableReturnStatement
Psalm ignores it at error level 7 and higher.
- Code
NullArgument
Psalm reports it at each error level.
- Code
NullArrayAccess
Psalm ignores it at error level 7 and higher.
- Code
NullArrayOffset
Psalm reports it at each error level.
- Code
NullFunctionCall
Psalm reports it at each error level.
- Code
NullIterator
Psalm ignores it at error level 3 and higher.
- Code
NullOperand
Psalm reports it at each error level.
- Code
NullPropertyAssignment
Psalm reports it at each error level.
- Code
NullPropertyFetch
Psalm reports it at each error level.
- Code
NullReference
Psalm ignores it at error level 7 and higher.
- Code
OverriddenFinalConstant
Properties declared with private(set) asymmetric visibility are implicitly final. Psalm ignores it at error level 7 and higher.
- Code
OverriddenFinalProperty
Psalm ignores it at error level 7 and higher.
- Code
OverriddenInterfaceConstant
Psalm ignores it at error level 8.
- Code
OverriddenMethodAccess
Psalm reports it at each error level.
- Code
OverriddenPropertyAccess
Psalm reports it at each error level.
- Code
ParadoxicalCondition
Psalm ignores it at error level 8.
- Code
ParamNameMismatch
Psalm reports it at each error level.
- Code
ParentNotFound
- Code
ParseError
- Code
PluginIssue
Psalm ignores it at error level 5 and higher.
- Code
PossibleRawObjectIteration
This is distinct from a function argument is possibly bool, which results in PossiblyInvalidArgument. Psalm ignores it at error level 4 and higher.
- Code
PossiblyFalseArgument
Psalm ignores it at error level 4 and higher.
- Code
PossiblyFalseIterator
Psalm ignores it at error level 4 and higher.
- Code
PossiblyFalseOperand
Psalm ignores it at error level 4 and higher.
- Code
PossiblyFalsePropertyAssignmentValue
Psalm ignores it at error level 4 and higher.
- Code
PossiblyFalseReference
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidArgument
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidArrayAccess
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidArrayAssignment
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidArrayOffset
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidCast
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidClone
Psalm ignores it at error level 5 and higher.
- Code
PossiblyInvalidDocblockTag
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidFunctionCall
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidIterator
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidMethodCall
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidOperand
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidPropertyAssignment
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidPropertyAssignmentValue
Psalm ignores it at error level 4 and higher.
- Code
PossiblyInvalidPropertyFetch
Psalm ignores it at error level 4 and higher.
- Code
PossiblyNullArgument