Skip to content
Psalm
Documentation About Psalm
Type to start searching
    GitHub
    Psalm docs
    • Home
      • Example output
      • Inspirations
      • Index
    • Running Psalm
      • Installation
      • Configuration
      • Plugins
        • Using plugins
        • Authoring plugins
        • How Psalm represents types
      • Command line usage
      • Running Psalm from AI coding agents
      • Finding out why Psalm is slow
      • IDE support
      • Dealing with code issues
      • Issue Types
        • Overview
        • AbstractInstantiation
        • AbstractMethodCall
        • AmbiguousConstantInheritance
        • ArgumentTypeCoercion
        • AssignmentToVoid
        • CallableByReferenceMismatch
        • CheckType
        • CircularReference
        • ClassMustBeFinal
        • CliOnlyCall
        • CliOnlyInstancesUnguarded
        • ComplexFunction
        • ComplexMethod
        • ConfigIssue
        • ConflictingReferenceConstraint
        • ConstantDeclarationInTrait
        • ConstructorSignatureMismatch
        • ContinueOutsideLoop
        • DeprecatedClass
        • DeprecatedConstant
        • DeprecatedFunction
        • DeprecatedInterface
        • DeprecatedMethod
        • DeprecatedProperty
        • DeprecatedSyntax
        • DeprecatedTrait
        • DirectConstructorCall
        • DocblockTypeContradiction
        • DuplicateArrayKey
        • DuplicateClass
        • DuplicateConstant
        • DuplicateEnumCase
        • DuplicateEnumCaseValue
        • DuplicateFunction
        • DuplicateMethod
        • DuplicateParam
        • DuplicateProperty
        • EmptyArrayAccess
        • ExtensionRequirementViolation
        • FalsableReturnStatement
        • FalseOperand
        • ForbiddenCode
        • HiddenGeneratorReturn
        • IfThisIsMismatch
        • ImmutableDependency
        • ImplementationRequirementViolation
        • ImplementedParamTypeMismatch
        • ImplementedReturnTypeMismatch
        • ImplicitFloatToIntCast
        • ImplicitToStringCast
        • ImpureByReferenceAssignment
        • ImpureFunctionCall
        • ImpureGlobalVariable
        • ImpureMethodCall
        • ImpurePropertyAssignment
        • ImpurePropertyFetch
        • ImpureStaticProperty
        • ImpureStaticVariable
        • ImpureVariable
        • InaccessibleClassConstant
        • InaccessibleMethod
        • InaccessibleProperty
        • IncompatibleTypeParameters
        • InheritorViolation
        • InsecureCookie
        • InterfaceInstantiation
        • InternalClass
        • InternalFunction
        • InternalMethod
        • InternalProperty
        • IntMaskComparison
        • InvalidArgument
        • InvalidArrayAccess
        • InvalidArrayAssignment
        • InvalidArrayOffset
        • InvalidAttribute
        • InvalidCast
        • InvalidCatch
        • InvalidClass
        • InvalidClassConstantType
        • InvalidClone
        • InvalidConstantAssignmentValue
        • InvalidDocblock
        • InvalidDocblockParamName
        • InvalidEnumBackingType
        • InvalidEnumCaseValue
        • InvalidEnumMethod
        • InvalidExtendClass
        • InvalidFalsableReturnType
        • InvalidFunctionCall
        • InvalidGlobal
        • InvalidInterfaceImplementation
        • InvalidIterator
        • InvalidLiteralArgument
        • InvalidMethodCall
        • InvalidNamedArgument
        • InvalidNullableReturnType
        • InvalidOperand
        • InvalidOverride
        • InvalidParamDefault
        • InvalidParent
        • InvalidPassByReference
        • InvalidPropertyAssignment
        • InvalidPropertyAssignmentValue
        • InvalidPropertyFetch
        • InvalidReturnStatement
        • InvalidReturnType
        • InvalidScalarArgument
        • InvalidScope
        • InvalidStaticInvocation
        • InvalidStringClass
        • InvalidTemplateParam
        • InvalidThrow
        • InvalidToString
        • InvalidTraversableImplementation
        • InvalidTypeImport
        • LessSpecificClassConstantType
        • LessSpecificImplementedReturnType
        • LessSpecificReturnStatement
        • LessSpecificReturnType
        • LiteralKeyUnshapedArray
        • LoopInvalidation
        • MethodSignatureMismatch
        • MethodSignatureMustOmitReturnType
        • MethodSignatureMustProvideReturnType
        • MismatchingDocblockParamType
        • MismatchingDocblockPropertyType
        • MismatchingDocblockReturnType
        • MissingAbstractPureAnnotation
        • MissingClassConstType
        • MissingClosureParamType
        • MissingClosureReturnType
        • MissingConstructor
        • MissingDependency
        • MissingDocblockType
        • MissingExtensionRequirement
        • MissingFile
        • MissingImmutableAnnotation
        • MissingInterfaceImmutableAnnotation
        • MissingOverrideAttribute
        • MissingParamType
        • MissingPropertyType
        • MissingPureAnnotation
        • MissingReturnType
        • MissingTemplateParam
        • MissingThrowsDocblock
        • MixedArgument
        • MixedArgumentTypeCoercion
        • MixedArrayAccess
        • MixedArrayAssignment
        • MixedArrayOffset
        • MixedArrayTypeCoercion
        • MixedAssignment
        • MixedClone
        • MixedFunctionCall
        • MixedMethodCall
        • MixedOperand
        • MixedPropertyAssignment
        • MixedPropertyFetch
        • MixedPropertyTypeCoercion
        • MixedReturnStatement
        • MixedReturnTypeCoercion
        • MixedStringOffsetAssignment
        • MoreSpecificImplementedParamType
        • MoreSpecificReturnType
        • MutableDependency
        • NamedArgumentNotAllowed
        • NoEnumProperties
        • NoInterfaceProperties
        • NonInvariantDocblockPropertyType
        • NonInvariantPropertyType
        • NonStaticSelfCall
        • NonVariableReferenceReturn
        • NoValue
        • NullableReturnStatement
        • NullArgument
        • NullArrayAccess
        • NullArrayOffset
        • NullFunctionCall
        • NullIterator
        • NullOperand
        • NullPropertyAssignment
        • NullPropertyFetch
        • NullReference
        • OverriddenFinalConstant
        • OverriddenFinalProperty
        • OverriddenInterfaceConstant