Skip to content

fix phpstan: use configured level 0#5053

Merged
hsanson merged 1 commit intodense-analysis:masterfrom
biinari:fix/phpstan-level_zero
Oct 26, 2025
Merged

fix phpstan: use configured level 0#5053
hsanson merged 1 commit intodense-analysis:masterfrom
biinari:fix/phpstan-level_zero

Conversation

@biinari
Copy link
Contributor

@biinari biinari commented Oct 7, 2025

Fixes #3139

Use g:ale_php_phpstan_level for phpstan -l (--level) command argument if it is configured to 0 (as a number rather than string).

0 (number) is considered to be empty, but '0' (string) is not.

Use configured g:ale_php_phpstan_level if it is 0 (as a number rather
than string).

0 (number) is considered to be empty, but '0' (string) is not.
@hsanson hsanson merged commit 21d5de1 into dense-analysis:master Oct 26, 2025
8 checks passed
@biinari
Copy link
Contributor Author

biinari commented Oct 26, 2025

Thanks

@biinari biinari deleted the fix/phpstan-level_zero branch October 26, 2025 08:19
Caw3 pushed a commit to Caw3/ale that referenced this pull request Dec 10, 2025
Use configured g:ale_php_phpstan_level if it is 0 (as a number rather
than string).

0 (number) is considered to be empty, but '0' (string) is not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

phpstan is called with "-l 4" instead of 0 in certain situations

2 participants