Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap levels are int in DrupalBootLevels #5155

Merged
merged 1 commit into from Jun 22, 2022

Conversation

mglaman
Copy link
Contributor

@mglaman mglaman commented May 29, 2022

When using PHPStan, there is an error with the following code:

Code:

#[CLI\Bootstrap(level: DrupalBootLevels::NONE)]

Error:

Parameter $level of attribute class Drush\Attributes\Bootstrap constructor expects string, int given. 

All constants are integers. When passing a stringified zero ('0) the attribute fails. So it's documented as a string but actually wants an integer.

@weitzman weitzman merged commit d5b7101 into drush-ops:11.x Jun 22, 2022
@weitzman
Copy link
Member

thanks

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.

None yet

2 participants