| Recommend this page to a friend! |
| Packages of ?????? ??????? | Adaptive Entity Manager | docs/rfc/RFC-002-phpstan-level-8-roadmap.md | Download |
|
|
||||||||||||||||||||
RFC-002: ???????? ????? ????????? PHPStan-?????? ?? Level 8| ???? | ???????? |
|-----------------|-----------------------------------------------|
| ?????? | Proposed |
| ???? | 2026-05-05 |
| ????? | Ruslan Kabirov |
| ?????????? ????? | ???????????????? ??????? ???????????? ??????? PHPStan ? ??????? ? level 5. ??? ??????????? ???????, ??????? ????? ????????? ?????? (?????????????? ??????, ?????? ?????????????? ???????, ???????? ???? ??????????). ?????? ?? ?????????? ????? ????? ??????, ????????? ??? ??????????, ???????????? ? production: ??? ????? Level 5
??? ?? ????? Level 5 (?? ????? Level 8)
??? ?????????? ? ??????? ?????????
??????? ???????????? ???????????????? ????????? ?????? ? 5 ?? 8, ?? ?????? ?????? ?? release-????. ?????? ???? ????????:
???? 1: Level 5 ? Level 6?????: Boolean types,??? null-checking Level 6 ???????? ????????? ????? ????????? nullable-????????. ???????? ??????, ??????? ????????:
????????? ?????????? ????? ??????: 30-50. ?????? ???????: 1-2 ???. ???????? ???????????:
- ???????? ???? 2: Level 6 ? Level 7?????: ??????????? ?????, array-shape ?????? Level 7 ???????? ????????????? ??????? ??? ????????? (
????????? ?????????? ????? ??????: 40-80. ?????? ???????: 2-3 ???. ???????? ???????????:
- ???????? ???? 3: Level 7 ? Level 8?????: ?????? ??????? Strictness, ????????? Level 8 ? ???????????? strictness. ???
????????? ?????????? ????? ??????: 50-100. ?????? ???????: 3-5 ????. ???????? ???????????:
- ???????? ?????? ? Baseline?? ?????? ????? ????????? ???????? ??????, ??????? ?????????? ??? ??????????????? ????????? ????? (????????, ? ?????????? API, ??????? ??????????? ???????). ??? ????? ???????:
?????? baseline ? TODO:
> ??????????: PHPStan ?? ???????????? ??????? ?? ?????????????????? CI????????? ?????? PHPStan ??????????? ????? ???????: | Level | ????? ??????? (??????????????) | |-------|-------------------------------| | 5 | ~15 ?????? | | 6 | ~20 ?????? | | 7 | ~30 ?????? | | 8 | ~45 ?????? | ??? ????????? ??? CI. ???? ????? ?????? ?????????, ????? ????????? ?????? ?? ???????????? ????? ?? namespace. ???????? ??????
????????| ???? | ??????? | ?????? | ???? | |--------|-----------|-----------|---------------| | ???????| Level 5 | v1.6.0 | ? | | ???? 1 | Level 6 | v1.7.0 | +2 ?????? | | ???? 2 | Level 7 | v1.8.0 | +4 ?????? | | ???? 3 | Level 8 | v1.9.0 | +7 ?????? | ???????????????????????? 1: ????? Level 8??????? ??????? ?? 8 ????? ????????, ?????? ??? ?????? ? baseline, ? ?????????? ??????????. ????: ????? ????? ?????? ??????? ???????. ?????: baseline ?? 200+ ??????? ????????????. ??? ???????????????? ?????????. ?????? ???????? PR ? ??????? ?????????. ???????????? 2: Psalm ?????? PHPStan??????? ?? Psalm, ??????? ??????????? ?????? ? ?????? ? ????????? ? ???????????. ????: ?????? ?????? array shapes ? ??????????. ?????: ??? ??????????? ?????? ?????? ? ??? ??????? ???????? ?? CI ? ?? ?????????????. Psalm ? PHPStan ?????? ?????????? ? ????????????? ?????. ??? ?????????? ? ??????????? (Symfony bundle) ????? ?????????? ?? PHPStan, ??????? ???????? ?????????? ? Symfony-????. ???????????? 3: ???????? Level 5?? ??????? ????? ?? ????????? ??????. ?????: ??????????, ???????????? ?? production-????????????? ? ????????????? ? Doctrine, ?????? ??????????????? ?????????? ???????? Doctrine. Doctrine ORM ?????????? PHPStan level 8. ?????????? ? ???????? ???????????? ??????? ??????? ??????? ? ??????????. |