Skip to content

linter: new rule for declare(strict_types) #1736

linter: new rule for declare(strict_types)

linter: new rule for declare(strict_types) #1736

Triggered via pull request March 6, 2024 13:42
Status Failure
Total duration 1m 58s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
Build
unexpected number of reports: expected 2, got 3
Build
unexpected report 2: WARNING noDeclareSection: You have no declare section with strict_types=1 argument at _file0.php:3
Build
>>> issues reported:
Build
WARNING exampleStrictCmp: 3rd argument of in_array must be true when comparing strings at _file0.php:12
Build
WARNING exampleStrictCmp: Strings must be compared using '===' operator at _file0.php:16
Build
WARNING noDeclareSection: You have no declare section with strict_types=1 argument at _file0.php:3
Build
<<<
Build
test] Error 1
Build
Process completed with exit code 2.
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/