Commit bc675f0
authored
[PHP 8.3] Make use of typed constants (#7839)
* [PHP 8.3] Remove docblock if useless in AddTypeToConstRector to avoid duplicated leftovers"
* fixup! [PHP 8.3] Remove docblock if useless in AddTypeToConstRector to avoid duplicated leftovers"
* [PHP 8.3] Make use of typed constants1 parent a8bb550 commit bc675f0
File tree
187 files changed
+790
-1978
lines changed- build
- rules-tests/Php83/Rector/ClassConst/AddTypeToConstRector/Fixture
- rules
- Arguments
- NodeAnalyzer
- ValueObject
- Assert/Enum
- Carbon
- NodeFactory
- Rector/FuncCall
- CodeQuality
- NodeAnalyzer
- Rector
- Catch_
- Concat
- For_
- FuncCall
- FunctionLike
- If_
- Include_
- CodingStyle
- ClassNameImport/ClassNameImportSkipVoter
- NodeAnalyzer
- Rector
- Catch_
- Encapsed
- FuncCall
- String_
- ValueObject
- DeadCode
- PhpDoc/Guard
- Rector
- Cast
- Node
- SideEffect
- Naming
- ExpectedNameResolver
- Guard
- Naming
- Rector
- Assign
- Foreach_
- Php53/Rector/Variable
- Php55
- Rector/String_
- Php70
- Enum
- Rector
- FuncCall
- FunctionLike
- Php72
- NodeFactory
- Rector/Assign
- Php73/Rector
- ConstFetch
- FuncCall
- String_
- Php74/Rector/LNumber
- Php80
- Enum
- MatchAndRefactor/StrStartsWithMatchAndRefactor
- Rector
- Class_
- NotIdentical
- Php81
- Enum
- NodeFactory
- Rector
- Class_
- MethodCall
- New_
- Php82/Rector/Param
- Php83/Rector
- BooleanAnd
- ClassConst
- ClassMethod
- Php85/Rector/ArrayDimFetch
- Privatization
- Guard
- TypeManipulator
- Transform/Enum
- TypeDeclarationDocblocks
- Enum
- TypeResolver
- TypeDeclaration
- Enum
- NodeTypeAnalyzer
- Rector
- ClassMethod
- FunctionLike
- Property
- StmtsAwareInterface
- ValueObject
- scripts
- src
- Application
- BetterPhpDocParser
- Attributes
- PhpDocInfo
- PhpDocManipulator
- PhpDocParser
- Printer
- ValueObject
- DoctrineAnnotation
- Caching/Enum
- ChangesReporting
- Output
- ValueObject
- Configuration
- Config/Level
- Console
- Command
- Formatter
- CustomRules
- DependencyInjection
- Enum
- Config
- FileSystem
- Git
- NodeAnalyzer
- NodeManipulator
- NodeNameResolver
- Regex
- NodeNestingScope/ValueObject
- NodeTypeResolver
- DependencyInjection
- NodeTypeResolver
- Node
- PHPStan/Scope
- PHPStanStaticTypeMapper
- Enum
- TypeMapper
- Parallel
- Application
- Command
- ValueObject
- PhpAttribute
- Enum
- PhpDocParser
- PhpDocParser
- ValueObject
- ValueObject
- PhpParser
- Enum
- Node
- Parser
- Printer
- Php
- Rector
- Set
- Enum
- ValueObject
- StaticTypeMapper/Mapper
- Util
- Validation
- ValueObject
- Reporting
- tests
- Parallel/Command
- PhpDocParser/PhpDocParser/SimplePhpDocNodeTraverser
- utils
- Compiler
- Rector
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
187 files changed
+790
-1978
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
87 | 81 | | |
88 | 82 | | |
89 | | - | |
| 83 | + | |
90 | 84 | | |
91 | 85 | | |
92 | 86 | | |
| |||
131 | 125 | | |
132 | 126 | | |
133 | 127 | | |
134 | | - | |
| 128 | + | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | 29 | | |
33 | | - | |
| 30 | + | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
13 | 10 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 11 | + | |
18 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments