Commit c9c5157
committed
Follow recommendation about multiline type
Apparently, there is consensus about multiline types between:
- PHPStan
- Psalm
- Slevomat Coding Standard
See slevomat/coding-standard#1586 (comment)
Using parenthesis is less ambiguous, it makes it clear to the parser
where the type begins and where it ends.
The change has a positive impact on the Psalm baseline, showing
that psalm-return annotation was not really understood previously.1 parent 4aadba6 commit c9c5157
2 files changed
Lines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2566 | 2566 | | |
2567 | 2567 | | |
2568 | 2568 | | |
2569 | | - | |
2570 | | - | |
| 2569 | + | |
2571 | 2570 | | |
2572 | 2571 | | |
2573 | 2572 | | |
2574 | 2573 | | |
2575 | 2574 | | |
2576 | 2575 | | |
2577 | 2576 | | |
2578 | | - | |
| 2577 | + | |
2579 | 2578 | | |
2580 | 2579 | | |
2581 | 2580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2008 | 2008 | | |
2009 | 2009 | | |
2010 | 2010 | | |
2011 | | - | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | | - | |
2016 | | - | |
2017 | | - | |
2018 | | - | |
2019 | 2011 | | |
2020 | 2012 | | |
2021 | 2013 | | |
2022 | 2014 | | |
2023 | | - | |
2024 | 2015 | | |
2025 | 2016 | | |
2026 | 2017 | | |
| |||
0 commit comments