Commit 5eb9e6f
authored
Internal improvements 8 (#31)
* Add DoctrineCollection and DoctrineCollectionInterface with type annotations; enhance ConfigTest and ScopeManagerTest for improved type checking and identify edge cases
* Refactor DocblockExtractor to prioritize tag extraction for phpstan and psalm tags; enhance tests for parameter, return, and variable tags, and enhance root directory detection
* Refactor type error assertions in tests for consistency and clarity
- Updated type error assertions in various tests to ensure consistent formatting and clarity.
- Added explicit line breaks for better readability in assertions.
- Ensured that all type error messages are correctly formatted and aligned with expected types.
- Improved the overall structure of test cases related to argument unpacking, by-reference parameters, and generics.
* Enhance documentation with tooling annotation priority hierarchies for parameters, returns, and templates across multiple files
* Enhance SpecialTypeResolver and StreamWrapper to support class trait use docblocks; add tests for generic traits and vendor isolation
* Enhance generics documentation and tests for class, interface, and trait inheritance; add single-line inline trait use example
* Fix formatting in GenericTraitsUseAnnotationTest and add newline at end of SingleLineInlineTraitUseService
* Refactor User class and add HookedUser class with asymmetric visibility properties; update tests to validate property hooks1 parent 5d74127 commit 5eb9e6f
87 files changed
Lines changed: 1500 additions & 310 deletions
File tree
- docs
- advanced
- core-concepts
- generics
- src
- Contract
- Internal
- Checker
- Visitor
- Resolver
- Validator
- Wrapper
- tests
- Contract
- Fixtures
- Anonymous
- ByRef
- Callables
- Collections
- Conditionals
- Dnf
- Domain
- Enums
- Generics
- Iterators
- Pipes
- Readonly
- Shapes
- Traits
- Types
- Unpack
- Internal
- TypeChecking
- ArraysAndShapes
- Boundaries
- CallablesAndIterators
- Generics
- InheritanceAndAttributes
- Visitor
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
86 | 106 | | |
87 | 107 | | |
88 | 108 | | |
| |||
226 | 246 | | |
227 | 247 | | |
228 | 248 | | |
| 249 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
40 | 73 | | |
41 | 74 | | |
42 | 75 | | |
| |||
257 | 290 | | |
258 | 291 | | |
259 | 292 | | |
260 | | - | |
| 293 | + | |
261 | 294 | | |
262 | 295 | | |
263 | 296 | | |
| |||
284 | 317 | | |
285 | 318 | | |
286 | 319 | | |
287 | | - | |
| 320 | + | |
288 | 321 | | |
289 | 322 | | |
290 | 323 | | |
| |||
329 | 362 | | |
330 | 363 | | |
331 | 364 | | |
332 | | - | |
333 | | - | |
334 | 365 | | |
335 | 366 | | |
336 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
77 | 114 | | |
78 | 115 | | |
79 | 116 | | |
| |||
163 | 200 | | |
164 | 201 | | |
165 | 202 | | |
166 | | - | |
| 203 | + | |
167 | 204 | | |
168 | 205 | | |
169 | | - | |
| 206 | + | |
170 | 207 | | |
171 | 208 | | |
172 | 209 | | |
173 | 210 | | |
174 | 211 | | |
175 | 212 | | |
176 | 213 | | |
177 | | - | |
| 214 | + | |
178 | 215 | | |
179 | 216 | | |
180 | | - | |
| 217 | + | |
181 | 218 | | |
182 | 219 | | |
183 | | - | |
| 220 | + | |
184 | 221 | | |
185 | 222 | | |
186 | 223 | | |
| |||
626 | 663 | | |
627 | 664 | | |
628 | 665 | | |
629 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
630 | 675 | | |
631 | | - | |
| 676 | + | |
632 | 677 | | |
633 | 678 | | |
634 | 679 | | |
| |||
646 | 691 | | |
647 | 692 | | |
648 | 693 | | |
649 | | - | |
| 694 | + | |
650 | 695 | | |
651 | | - | |
| 696 | + | |
652 | 697 | | |
653 | 698 | | |
654 | 699 | | |
| |||
668 | 713 | | |
669 | 714 | | |
670 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
671 | 816 | | |
672 | 817 | | |
673 | 818 | | |
| |||
722 | 867 | | |
723 | 868 | | |
724 | 869 | | |
725 | | - | |
| 870 | + | |
726 | 871 | | |
727 | 872 | | |
728 | 873 | | |
| |||
744 | 889 | | |
745 | 890 | | |
746 | 891 | | |
747 | | - | |
| 892 | + | |
748 | 893 | | |
749 | | - | |
| 894 | + | |
750 | 895 | | |
751 | 896 | | |
752 | 897 | | |
| |||
951 | 1096 | | |
952 | 1097 | | |
953 | 1098 | | |
| 1099 | + | |
0 commit comments