Skip to content

Avoid using dynamic properties of Icinga\Web\View as arguments #94

Avoid using dynamic properties of Icinga\Web\View as arguments

Avoid using dynamic properties of Icinga\Web\View as arguments #94

Triggered via pull request November 4, 2024 13:23
Status Success
Total duration 2m 5s
Artifacts

phpstan.yml

on: pull_request
Matrix: phpstan / phpstan
Fit to window
Zoom out
Zoom in

Annotations

70 errors
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/ConfigController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ConfigController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/ErrorController.php#L131
Offset 1 on array{string, '', non-empty-string, non-empty-string}|array{string, non-empty-string} in isset() always exists and is not nullable.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/ListController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/ListController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/NavigationController.php#L1
Ignored error pattern #^Cannot call method getLabel\(\) on Icinga\\Web\\Navigation\\NavigationItem\|null\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/NavigationController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/RoleController.php#L1
Ignored error pattern #^Parameter \#1 \$query of method Icinga\\Web\\Controller\:\:setupPaginationControl\(\) expects Icinga\\Data\\QueryInterface, null given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/RoleController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function readfile expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: application/controllers/StaticController.php#L1
Ignored error pattern #^Parameter \#1 \$filename of function stat expects string, string\|false given\.$# in path /home/runner/work/icingaweb2/icingaweb2/application/controllers/StaticController.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: library/Icinga/Application/Platform.php#L1
Ignored error pattern #^Cannot access offset 'name' on array\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/Application/Platform.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: library/Icinga/Application/Platform.php#L273
Cannot access offset 'name' on array{name: string, passwd: string, uid: int, gid: int, gecos: string, dir: string, shell: string}|false.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: library/Icinga/File/Storage/LocalFileStorage.php#L1
Ignored error pattern #^Cannot access offset 0 on array\<mixed\>\|false\.$# in path /home/runner/work/icingaweb2/icingaweb2/library/Icinga/File/Storage/LocalFileStorage.php was not matched in reported errors.