The class has been incorrectly instantiated, which would cause a runtime error.
The assignment is not valid and would raise an error during the runtime.
Syntax error found in this file. Please refer to the error message for more information.
This issue is raised when increment/decrement operators are used on any other type of variable than numbers or strings.
throwexpression used in PHP < 8.0 PHP-W1017
throw expression is allowed only in PHP >= 8.0.
Trying to use it in earlier PHP versions will give you an error.
This issue is raised when the number of parameters passed to
fscanf doesn't match the number of placeholders.
It is recommended to make sure the number of placeholders and parameters are the same.
A function has been called, but not defined. This will result in a run time fatal error.
The Exception class you are trying to use seems to be invalid. This will result in a run time fatal error.
The method you are trying to call is not defined, which can result in a fatal error.
Invalid call to a static method. This would lead to a run time error.
This issue is raised if a method with a return type does not have a return statement of an appropriate type.
The method you are trying to override cannot be overridden in the child class. This would result in a runtime error which can break the execution flow.
The typed properties must not be accessed before initialization. That means the property is in Uninitialized state, so reading from the property will result in a fatal runtime error.
instanceofis not of valid type PHP-E1009
A class that you are trying to check against using
instanceof keyword is not of valid class object type. This will result in fatal runtime error.
One or more class constants have been defined inside a trait. The class constants can only be defined inside a class. Defining class constants outside a class can lead to runtime errors.
switchstatement contains multiple
default case in a
switch statement is invoked when none of the cases specified matches the
switch condition. It is therefore recommended to have only one default case. Having more than one default case would result in a runtime error.
One or more abstract methods have been defined in a class that is not abstract. Declaring
abstract methods are only supported inside an
An abstract class is a superclass which provides a blueprint for derived classes and set some rules what the derived classes must implement when they inherit an abstract class.
optionsarray while creating a cookie PHP-E1116
One or more keys used in the
options array contains an invalid key in the
setrawcookie function. Starting from PHP 7.3.0,
setrawcookie functions provide the ability to set cookie options via passing an associative array to a third parameter.
An associative array only allows the use of
samesite keys to be present. Using anything other than these would raise a warning for PHP > 8.0, and a fatal error for PHP >= 8.0 during the runtime.
Abstract methods should not have a definition. They are used to define a contract that derived classes must implement. Therefore implementing an abstract method itself violates the meaning of defining the method as
The issue is raised when an arrow function has an invalid parameter and/or return type hint. This can result in type errors at the runtime.