Skip to content

Bootstrap levels are int in DrupalBootLevels#5155

Merged
weitzman merged 1 commit intodrush-ops:11.xfrom
mglaman:patch-1
Jun 22, 2022
Merged

Bootstrap levels are int in DrupalBootLevels#5155
weitzman merged 1 commit intodrush-ops:11.xfrom
mglaman:patch-1

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.

2 participants