analyse/types
Type declarations, type checks and inferred types. Also in format (6) and lint (77).
argument
In the analyse-basic preset and every stricter one. Report only.
argument-not-numeric
In the analyse-recommended preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.checkParameterCastableToNumberFunctions).
argument-not-stringable
In the analyse-recommended preset and every stricter one. Report only.
arrow-function-nullsafe-by-ref
In the analyse-basic preset and every stricter one. Report only.
arrow-function-param-default
In the analyse-essential preset and every stricter one. Report only.
arrow-function-return
In the analyse-essential preset and every stricter one. Report only.
assign-to-this
In the analyse-basic preset and every stricter one. Report only.
by-ref-foreach-on-expression
In the analyse-basic preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.assignToByRefForeachExpr).
call-user-func-argument
In the analyse-recommended preset and every stricter one. Report only.
catch-non-throwable
In the analyse-basic preset and every stricter one. Report only.
class-constant-value
In the analyse-essential preset and every stricter one. Report only.
clone-non-object
In the analyse-essential preset and every stricter one. Report only.
closure-param-default
In the analyse-essential preset and every stricter one. Report only.
closure-return
In the analyse-essential preset and every stricter one. Report only.
constant-value
In the analyse-essential preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.checkDynamicConstantNameValues).
dead-catch
In the analyse-recommended preset and every stricter one. Report only.
define-value
In the analyse-essential preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.checkDynamicConstantNameValues).
echo-non-string
In the analyse-essential preset and every stricter one. Report only.
enum-template-not-allowed
In the analyse-essential preset and every stricter one. Report only.
foreach-non-iterable
In the analyse-essential preset and every stricter one. Report only.
foreach-on-empty-array
In the analyse-recommended preset and every stricter one. Report only.
function-return
In the analyse-essential preset and every stricter one. Report only.
function-variance
In the analyse-essential preset and every stricter one. Report only.
generator
In the analyse-essential preset and every stricter one. Report only.
implode-non-string
In the analyse-recommended preset and every stricter one. Report only.
interpolated-non-string
In the analyse-essential preset and every stricter one. Report only.
invalid-arrow-function-signature
In the analyse-basic preset and every stricter one. Report only.
invalid-assignment-target
In the analyse-basic preset and every stricter one. Report only.
invalid-binary-operation
In the analyse-essential preset and every stricter one. Report only.
invalid-cast
In the analyse-essential preset and every stricter one. Report only.
invalid-class-generics
In the analyse-essential preset and every stricter one. Report only.
invalid-class-template
In the analyse-essential preset and every stricter one. Report only.
invalid-closure-signature
In the analyse-basic preset and every stricter one. Report only.
invalid-comparison
In the analyse-essential preset and every stricter one. Report only.
invalid-enum-generics
In the analyse-essential preset and every stricter one. Report only.
invalid-function-signature
In the analyse-basic preset and every stricter one. Report only.
invalid-function-template
In the analyse-essential preset and every stricter one. Report only.
invalid-hook-signature
In the analyse-basic preset and every stricter one. Report only.
invalid-inc-dec
In the analyse-basic preset and every stricter one. Report only.
invalid-interface-generics
In the analyse-essential preset and every stricter one. Report only.
invalid-interface-template
In the analyse-essential preset and every stricter one. Report only.
invalid-method-signature
In the analyse-basic preset and every stricter one. Report only.
invalid-method-tag-template
In the analyse-essential preset and every stricter one. Report only.
invalid-method-template
In the analyse-essential preset and every stricter one. Report only.
invalid-offset
In the analyse-essential preset and every stricter one. Report only.
invalid-pipe
Reports a pipe callable whose first parameter is passed by reference. A pipe supplies a value, not a reference. The basic preset checks invokable $this receivers; essential and stricter presets check other callable expressions too.
In the analyse-basic preset and every stricter one. Report only.
invalid-property-assignment
In the analyse-basic preset and every stricter one. Report only.
invalid-property-type
In the analyse-basic preset and every stricter one. Report only.
invalid-regex
In the analyse-basic preset and every stricter one. Report only.
invalid-self-out-tag
In the analyse-essential preset and every stricter one. Report only.
invalid-throws-tag
Reports @throws types that are not subtypes of Throwable. Standalone void means no exception is thrown. Both branches of a conditional type must be valid. A union containing void is invalid.
In the analyse-essential preset and every stricter one. Report only.
invalid-trait-method-tag-template
In the analyse-essential preset and every stricter one. Report only.
invalid-trait-template
In the analyse-essential preset and every stricter one. Report only.
invalid-trait-use-generics
In the analyse-essential preset and every stricter one. Report only.
invalid-unary-operand
In the analyse-essential preset and every stricter one. Report only.
invalid-union-type
In the analyse-basic preset and every stricter one. Report only.
invalid-unset
In the analyse-basic preset and every stricter one. Report only.
invalid-void-cast
In the analyse-basic preset and every stricter one. Report only.
method-param-default
In the analyse-essential preset and every stricter one. Report only.
method-variance
In the analyse-essential preset and every stricter one. Report only.
missing-constant-type
In the analyse-strict preset and every stricter one. Report only.
missing-hook-throws
In the analyse-max preset. Report only. Upstream gates: exceptions.check.missingCheckedExceptionInThrows.
missing-method-param-type
In the analyse-strict preset and every stricter one. Report only.
missing-method-return-type
In the analyse-strict preset and every stricter one. Report only.
missing-method-throws
In the analyse-max preset. Report only. Upstream gates: exceptions.check.missingCheckedExceptionInThrows.
missing-param-type
In the analyse-strict preset and every stricter one. Report only.
missing-preg-quote-delimiter
In the analyse-recommended preset and every stricter one. Report only.
missing-property-type
In the analyse-strict preset and every stricter one. Report only.
missing-return
In the analyse-basic preset and every stricter one. Report only.
missing-return-type
In the analyse-strict preset and every stricter one. Report only.
missing-self-out-type
In the analyse-strict preset and every stricter one. Report only.
missing-throws
In the analyse-max preset. Report only. Upstream gates: exceptions.check.missingCheckedExceptionInThrows.
nullsafe-by-ref-return
In the analyse-basic preset and every stricter one. Report only.
offset-assign
In the analyse-essential preset and every stricter one. Report only.
offset-assign-op
In the analyse-essential preset and every stricter one. Report only.
offset-assign-value
In the analyse-essential preset and every stricter one. Report only.
param-default
In the analyse-essential preset and every stricter one. Report only.
param-out
In the analyse-essential preset and every stricter one. Report only.
param-out-at-end
In the analyse-essential preset and every stricter one. Report only.
phpdoc-readonly-by-ref
In the analyse-essential preset and every stricter one. Report only.
phpdoc-readonly-property-write
In the analyse-essential preset and every stricter one. Report only.
print-non-string
In the analyse-essential preset and every stricter one. Report only.
printf-argument
In the analyse-recommended preset and every stricter one. Report only. Upstream gates: bleedingEdge (featureToggles.checkPrintfParameterTypes).
property-assign
In the analyse-essential preset and every stricter one. Report only.
property-default
In the analyse-essential preset and every stricter one. Report only.
property-variance
In the analyse-essential preset and every stricter one. Report only.
random-int-range
In the analyse-recommended preset and every stricter one. Report only.
readonly-property-by-ref
In the analyse-essential preset and every stricter one. Report only.
readonly-property-write
In the analyse-essential preset and every stricter one. Report only.
redundant-array-values
In the analyse-recommended preset and every stricter one. Report only.
renamed-parameter-in-subtype
In the analyse-basic preset and every stricter one. Report only.
return
In the analyse-essential preset and every stricter one. Report only.
return-by-ref-finally
In the analyse-essential preset and every stricter one. Report only. Planned: not in Pun yet. Enabling it is a config error.
sort-non-stringable
In the analyse-recommended preset and every stricter one. Report only.
this-in-global
In the analyse-basic preset and every stricter one. Report only.
this-in-static
In the analyse-basic preset and every stricter one. Report only.
throw-non-throwable
In the analyse-essential preset and every stricter one. Report only.
throws-not-covariant
In the analyse-basic preset and every stricter one. Report only. Upstream gates: exceptions.check.throwTypeCovariance.
throws-void-function
In the analyse-essential preset and every stricter one. Report only.
throws-void-hook
In the analyse-essential preset and every stricter one. Report only.
throws-void-method
In the analyse-essential preset and every stricter one. Report only.
too-wide-arrow-function-return
In the analyse-recommended preset and every stricter one. Report only.
too-wide-closure-return
In the analyse-recommended preset and every stricter one. Report only.
too-wide-function-param-out
In the analyse-recommended preset and every stricter one. Report only.
too-wide-function-return
In the analyse-recommended preset and every stricter one. Report only.
too-wide-method-param-out
In the analyse-recommended preset and every stricter one. Report only.
too-wide-method-return
In the analyse-recommended preset and every stricter one. Report only.
too-wide-property
In the analyse-recommended preset and every stricter one. Report only.
unpack-non-iterable
In the analyse-essential preset and every stricter one. Report only.
unpack-string-key
In the analyse-essential preset and every stricter one. Report only.
unused-hook-throws-type
In the analyse-recommended preset and every stricter one. Report only. Upstream gates: exceptions.check.tooWideThrowType.
unused-method-throws-type
In the analyse-recommended preset and every stricter one. Report only. Upstream gates: exceptions.check.tooWideThrowType.
unused-throws-type
In the analyse-recommended preset and every stricter one. Report only. Upstream gates: exceptions.check.tooWideThrowType.
useless-array-filter
In the analyse-recommended preset and every stricter one. Report only.
void-match-used
In the analyse-essential preset and every stricter one. Report only.
write-to-readonly-property
In the analyse-basic preset and every stricter one. Report only.
yield-from-non-iterable
In the analyse-essential preset and every stricter one. Report only.
yield-outside-function
In the analyse-essential preset and every stricter one. Report only.