Skip to content
mir
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Introduction
Playground
Guides
Getting Started
Configuration
Reference
CLI
Issues
Overview
Undefined
UndefinedVariable
PossiblyUndefinedVariable
UndefinedFunction
UndefinedMethod
UndefinedClass
UndefinedProperty
UndefinedConstant
Nullability
NullArgument
NullPropertyFetch
NullMethodCall
NullArrayAccess
NullableReturnStatement
Type Mismatches
InvalidReturnType
InvalidArgument
TooFewArguments
TooManyArguments
InvalidNamedArgument
InvalidPassByReference
InvalidPropertyAssignment
InvalidCast
InvalidOperand
MismatchingDocblockReturnType
Array
InvalidArrayOffset
NonExistentArrayOffset
PossiblyInvalidArrayOffset
PossiblyInvalidArrayAccess
Redundancy
RedundantCondition
RedundantCast
UnnecessaryVarAnnotation
TypeDoesNotContainType
Dead Code
UnusedVariable
UnusedParam
UnusedMethod
UnusedProperty
UnusedFunction
UnreachableCode
Inheritance
UnimplementedAbstractMethod
UnimplementedInterfaceMethod
MethodSignatureMismatch
OverriddenMethodAccess
FinalClassExtended
FinalMethodOverridden
Security
TaintedHtml
TaintedSql
TaintedShell
Generics
InvalidTemplateParam
Other
DeprecatedMethod
DeprecatedClass
InternalMethod
InvalidThrow
MissingThrowsDocblock
ReadonlyPropertyAssignment
ParseError
InvalidDocblock
Docblock Annotations
Architecture
GitHub
Select theme
Dark
Light
Auto
Playground
PHP 8.1
PHP 8.2
PHP 8.3
PHP 8.4
PHP 8.5
Loading…
mir v0.16.0 · b4cccdf
1
<?php function add(int $a, int $b): int { return $a + $b; } $result = add("not a number", 42);