-
-
-
-
-
-
- 'PHP version ' . $php_version . ' not supported'], JSON_HEX_TAG | JSON_HEX_AMP);]]>
@var in variable assignments (still enabled for properties) for better type accuracy'],
- 'unused_methods' => [false, 'Detect unused classes and methods'],
- 'memoize_properties' => [true, 'Memoize property assignments'],
- 'memoize_method_calls' => [false, 'Memoize simple method calls'],
- 'check_throws' => [false, 'Check for @throws docblock'],
- 'strict_internal_functions' => [false, 'Report false and null returned by built-in functions'],
- 'restrict_return_types' => [false, 'Force return types to be as tight as possible'],
- 'use_phpdoc_without_magic_call' => [false, 'Use PHPDoc methods and properties without magic call.'],
- 'ensure_override_attribute' => [false, 'Ensure methods marked as override are actually overriding something'],
- 'ensure_array_offsets_exist' => [true, 'Require array offsets to be known to exist (ensureArrayStringOffsetsExist, ensureArrayIntOffsetsExist)'],
- 'find_unused_psalm_suppress' => [false, 'Report unused @psalm-suppress annotations'],
+ 'unused_variables' => [true, 'Detect unused variables and parameters', 'findUnusedVariablesAndParams'],
+ 'disable_var_parsing' => [false, 'Disable parsing of @var in variable assignments (still enabled for properties) for better type accuracy', 'disableVarParsing'],
+ 'unused_methods' => [false, 'Detect unused classes and methods', 'findUnusedCode'],
+ 'memoize_properties' => [true, 'Memoize property assignments', 'rememberPropertyAssignmentsAfterCall'],
+ 'memoize_method_calls' => [false, 'Memoize simple method calls', 'memoizeMethodCallResults'],
+ 'check_throws' => [false, 'Check for @throws docblock', 'checkForThrowsDocblock'],
+ 'strict_internal_functions' => [false, 'Report false and null returned by built-in functions', 'ignoreInternalFunctionFalseReturn'],
+ 'restrict_return_types' => [false, 'Force return types to be as tight as possible', 'restrictReturnTypes'],
+ 'use_phpdoc_without_magic_call' => [false, 'Use PHPDoc methods and properties without magic call.', 'usePhpDocMethodsWithoutMagicCall'],
+ 'ensure_override_attribute' => [false, 'Ensure methods marked as override are actually overriding something', 'ensureOverrideAttribute'],
+ 'ensure_array_offsets_exist' => [true, 'Require array offsets to be known to exist (ensureArrayStringOffsetsExist, ensureArrayIntOffsetsExist)', 'ensureArrayStringOffsetsExist'],
+ 'find_unused_psalm_suppress' => [false, 'Report unused @psalm-suppress annotations', 'findUnusedPsalmSuppress'],
];
/** @return listIt’s easy to make great things in PHP, but bugs can creep in just as easily. Psalm is a free & open-source static analysis tool that helps you identify problems in your code, so you can sleep a little better.
+ +Psalm helps people maintain a wide variety of codebases – large and small, ancient and modern. On its strictest setting it can help you prevent almost all type-related runtime errors, and enables you to take advantage of safe coding patterns popular in other languages.
Psalm also fixes bugs automatically, allowing you to improve your code without breaking a sweat.
Help support Psalm’s ongoing development costs by requesting a paid support contract from Psalm’s maintainer.