Commit 06d7411
committed
Restore strict_types enforcement in php-cs-fixer config
php-cs-fixer v3.95.0 added a `strategy` option to `declare_strict_types`
and set `@Symfony:risky` to `'strategy' => 'remove'` (see
PHP-CS-Fixer/PHP-CS-Fixer#9384), which causes the
preset we inherit to strip `declare(strict_types=1);` from every file on
the next CI run. Override with `'strategy' => 'enforce'` to keep the
pre-v3.95 behavior — strict types stay declared.
The one example file that didn't already have the declaration had it
added by the fixer; it is not part of the library's public API.
Closes STF-223.1 parent bf4dd4f commit 06d7411
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
0 commit comments