chore(deps-dev): bump eslint from 8.57.0 to 9.1.1 #188
Annotations
20 errors and 16 warnings
PHP_CodeSniffer:
src/PhpSample.php#L1
Missing declare(strict_types=1).
|
PHP_CodeSniffer:
src/PhpSample.php#L4
Type App\PsalmSample is not used in this file.
|
PHP_CodeSniffer:
src/PhpSample.php#L4
Use App\PsalmSample is from the same namespace – that is prohibited.
|
PHP_CodeSniffer:
src/PhpSample.php#L6
Class name doesn't match filename; expected "class PhpSample"
|
PHP_CodeSniffer:
src/PhpSample.php#L11
Expected "int" but found "integer" in @param annotation.
|
PHP_CodeSniffer:
src/PhpSample.php#L24
Multi-line arrays must have a trailing comma after the last element.
|
PHP_CodeSniffer:
src/PhpSample.php#L29
Operator == prohibited; use === instead
|
PHP_CodeSniffer:
src/PhpSample.php#L33
Operator == prohibited; use === instead
|
PHP_CodeSniffer:
src/PhpSample.php#L46
Method name "PhpAllSample::foo_Bar" is not in camel caps format
|
PHP_CodeSniffer:
src/PhpSample.php#L46
Visibility must be declared on method "foo_Bar"
|
MissingPropertyType:
src/PhpSample.php#L8
src/PhpSample.php:8:13: MissingPropertyType: Property App\PhpAllSample::$_string does not have a declared type - consider string (see https://psalm.dev/045)
|
MissingReturnType:
src/PhpSample.php#L13
src/PhpSample.php:13:21: MissingReturnType: Method App\PhpAllSample::bar does not have a return type, expecting non-empty-array<'ba'|'foo'|int, 0|1|mixed> (see https://psalm.dev/050)
|
UnusedVariable:
src/PhpSample.php#L15
src/PhpSample.php:15:9: UnusedVariable: $oneLineArray is never referenced or the value is not used (see https://psalm.dev/077)
|
UnusedVariable:
src/PhpSample.php#L16
src/PhpSample.php:16:9: UnusedVariable: $list is never referenced or the value is not used (see https://psalm.dev/077)
|
UnusedVariable:
src/PhpSample.php#L26
src/PhpSample.php:26:9: UnusedVariable: $unusedCode is never referenced or the value is not used (see https://psalm.dev/077)
|
MixedAssignment:
src/PhpSample.php#L27
src/PhpSample.php:27:9: MixedAssignment: Unable to determine the type of this assignment (see https://psalm.dev/032)
|
UndefinedVariable:
src/PhpSample.php#L27
src/PhpSample.php:27:20: UndefinedVariable: Cannot find referenced variable $undefinedVariable (see https://psalm.dev/024)
|
ForbiddenCode:
src/PhpSample.php#L37
src/PhpSample.php:37:9: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)
|
MissingReturnType:
src/PhpSample.php#L46
src/PhpSample.php:46:14: MissingReturnType: Method App\PhpAllSample::foo_Bar does not have a return type, expecting stdClass (see https://psalm.dev/050)
|
UnusedVariable:
src/PhpSample.php#L47
src/PhpSample.php:47:9: UnusedVariable: $file is never referenced or the value is not used (see https://psalm.dev/077)
|
PHP_Mess_Detector
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP_Mess_Detector:
src/PhpSample.php#L30
The method bar() contains an exit expression.
|
PHP_Mess_Detector:
src/PhpSample.php#L34
The method bar() contains an exit expression.
|
PHP_Mess_Detector:
src/PhpSample.php#L37
The method PhpAllSample::bar() calls the typical debug function var_dump() which is mostly only used during development.
|
PHP_Mess_Detector:
src/PhpSample.php#L46
Avoid unused parameters such as '$integer'.
|
PHP_Mess_Detector:
src/PhpSample.php#L46
Avoid unused parameters such as '$str'.
|
PHP_Mess_Detector:
src/PhpSample.php#L46
Avoid unused parameters such as '$arr'.
|
PHP_Mess_Detector:
src/PhpSample.php#L49
Missing class import via use statement (line '49', column '20').
|
PHP_Mess_Detector:
src/PhpSample.php#L53
Avoid unused private methods such as '_fooBar'.
|
PHP_CodeSniffer
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP_CodeSniffer:
src/PhpSample.php#L8
Property name "$_string" should not be prefixed with an underscore to indicate visibility
|
PHP_CodeSniffer:
src/PhpSample.php#L19
Line exceeds 120 characters; contains 122 characters
|
PHP_CodeSniffer:
src/PhpSample.php#L20
Line exceeds 120 characters; contains 125 characters
|
PHP_CodeSniffer:
src/PhpSample.php#L47
Silencing errors is discouraged; found: @fopen($filPath...
|
PHP_CodeSniffer:
src/PhpSample.php#L48
Silencing errors is discouraged; found: @$array[$notExistingKey...
|
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|