Commit 20d9930
committed
feat: allow ExplicitNullableParamTypeRector to run for PHP 8.1
This allows this rule to be applied one minor version earlier in "eager" mode,
since DNF type specifications came one step after intersection types
themselves.
I was originally just going to bump the required PHP version up to 8.2, but
I saw precedence for adding version guards in other rules:
- ReturnTypeFromStrictTypedCallRector
- AddParamTypeDeclarationRector
- IsIterableRector
So when PHP 8.1 is a possibility, we can still *reduce* the number of
deprecations without fully committing to them all.1 parent 572089f commit 20d9930
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
0 commit comments