Skip to content

Remove handling null from findVariableScopeExceptArrowFunctions #412

Remove handling null from findVariableScopeExceptArrowFunctions

Remove handling null from findVariableScopeExceptArrowFunctions #412

Triggered via push January 6, 2025 15:43
Status Failure
Total duration 38s
Artifacts

csqa.yml

on: push
Basic CS and QA checks
17s
Basic CS and QA checks
PHPStan & Psalm
26s
PHPStan & Psalm
Basic Performance Guard
12s
Basic Performance Guard
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
Basic CS and QA checks
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires squizlabs/php_codesniffer dev-master, found squizlabs/php_codesniffer[dev-feature/dont-ignore-internal-errors, dev-TEST/ghactions-revert-code-coverage-php-version, dev-feature/variable-sniffs-minor-performance-tweak, dev-feature/generators-dont-print-title-if-no-docs, dev-feature/add-security-file, dev-feature/3.x-metrics-for-switch-statements, dev-feature/773-safeguard-against-duplicate-test-markers, dev-feature/3769-improve-todo-fixme-sniffs, dev-feature/psr12-fileheader-more-modular-errorcode-spacing-after, dev-feature/pear-psr2-psr12-functioncallsignature-check-anon-classes, dev-4.x/feature/ci-prevent-issues-with-code-coverage, dev-phpcs-4.x/gitattributes-dont-ignore-test-framework-files, dev-phpcs-4.x/remove-external-tooling-sniffs, dev-phpcs-4.x/file-isreference-simplify, dev-phpcs-4.x/tokenizer-php-minor-tweak, dev-phpcs-4.x/3115-let-static-be-static, 1.4.2, ..., 1.5.x-dev, 2.0.0a1, ..., 2.9.x-dev, 3.0.0a1, ..., 3.11.2, 4.0.x-dev] but it does not match the constraint. Problem 2 - Root composer.json requires sirbrillig/phpcs-import-detection ^1.1 -> satisfiable by sirbrillig/phpcs-import-detection[v1.1.0, ..., v1.3.3]. - sirbrillig/phpcs-import-detection[v1.1.0, ..., v1.2.2] require php ^7.0 -> your php version (8.4.2) does not satisfy that requirement. - sirbrillig/phpcs-import-detection[v1.3.0, ..., v1.3.3] require squizlabs/php_codesniffer ^3.5.8 -> found squizlabs/php_codesniffer[3.5.8, ..., 3.11.2] but it conflicts with your root composer.json require (dev-master).
Basic CS and QA checks
Process completed with exit code 2.
InvalidNullableReturnType: VariableAnalysis/Lib/Helpers.php#L539
VariableAnalysis/Lib/Helpers.php:539:13: InvalidNullableReturnType: The declared return type 'int' for VariableAnalysis\Lib\Helpers::findVariableScopeExceptArrowFunctions is not nullable, but 'int|null' contains null (see https://psalm.dev/144)
NullableReturnStatement: VariableAnalysis/Lib/Helpers.php#L569
VariableAnalysis/Lib/Helpers.php:569:10: NullableReturnStatement: The declared return type 'int' for VariableAnalysis\Lib\Helpers::findVariableScopeExceptArrowFunctions is not nullable, but the function returns 'int<min, 0>|null' (see https://psalm.dev/139)
PHPStan & Psalm
Process completed with exit code 2.
Basic Performance Guard
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan & Psalm
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636