|
1 | 1 | <?php
|
2 | 2 |
|
| 3 | +use PHPStan\Type\MixedType; |
| 4 | +use PHPStan\Type\ObjectType; |
| 5 | +use PHPStan\Type\StringType; |
3 | 6 | use Rector\Config\RectorConfig;
|
4 | 7 | use Rector\TypeDeclaration\Rector\FunctionLike\AddParamTypeForFunctionLikeWithinCallLikeArgDeclarationRector;
|
5 | 8 | use Rector\TypeDeclaration\ValueObject\AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration;
|
|
22 | 25 | 'make',
|
23 | 26 | 1,
|
24 | 27 | 0,
|
25 |
| - new \PHPStan\Type\StringType, |
| 28 | + new StringType, |
26 | 29 | ),
|
27 | 30 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
28 | 31 | $targetClass,
|
29 | 32 | 'make',
|
30 | 33 | 1,
|
31 | 34 | 1,
|
32 |
| - new \PHPStan\Type\MixedType(true), |
| 35 | + new MixedType(true), |
33 | 36 | ),
|
34 | 37 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
35 | 38 | $targetClass,
|
36 | 39 | 'make',
|
37 | 40 | 1,
|
38 | 41 | 2,
|
39 |
| - new \PHPStan\Type\ObjectType('Closure'), |
| 42 | + new ObjectType('Closure'), |
40 | 43 | ),
|
41 | 44 | ]
|
42 | 45 | );
|
|
50 | 53 | 'validate',
|
51 | 54 | 0,
|
52 | 55 | 0,
|
53 |
| - new \PHPStan\Type\StringType, |
| 56 | + new StringType, |
54 | 57 | ),
|
55 | 58 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
56 | 59 | 'Illuminate\Http\Request',
|
57 | 60 | 'validate',
|
58 | 61 | 0,
|
59 | 62 | 1,
|
60 |
| - new \PHPStan\Type\MixedType(true), |
| 63 | + new MixedType(true), |
61 | 64 | ),
|
62 | 65 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
63 | 66 | 'Illuminate\Http\Request',
|
64 | 67 | 'validate',
|
65 | 68 | 0,
|
66 | 69 | 2,
|
67 |
| - new \PHPStan\Type\ObjectType('Closure'), |
| 70 | + new ObjectType('Closure'), |
68 | 71 | ),
|
69 | 72 | ]
|
70 | 73 | );
|
|
77 | 80 | 'after',
|
78 | 81 | 0,
|
79 | 82 | 0,
|
80 |
| - new \PHPStan\Type\ObjectType('Illuminate\Contracts\Validation\Validator'), |
| 83 | + new ObjectType('Illuminate\Contracts\Validation\Validator'), |
81 | 84 | ),
|
82 | 85 | ]
|
83 | 86 | );
|
|
90 | 93 | 'sometimes',
|
91 | 94 | 2,
|
92 | 95 | 0,
|
93 |
| - new \PHPStan\Type\ObjectType('Illuminate\Support\Fluent'), |
| 96 | + new ObjectType('Illuminate\Support\Fluent'), |
94 | 97 | ),
|
95 | 98 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
96 | 99 | 'Illuminate\Contracts\Validation\Validator',
|
97 | 100 | 'sometimes',
|
98 | 101 | 2,
|
99 | 102 | 1,
|
100 |
| - new \PHPStan\Type\MixedType(true), |
| 103 | + new MixedType(true), |
101 | 104 | ),
|
102 | 105 | ]
|
103 | 106 | );
|
|
110 | 113 | 'forEach',
|
111 | 114 | 0,
|
112 | 115 | 0,
|
113 |
| - new \PHPStan\Type\MixedType(true), |
| 116 | + new MixedType(true), |
114 | 117 | ),
|
115 | 118 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
116 | 119 | 'Illuminate\Validation\Rule',
|
117 | 120 | 'forEach',
|
118 | 121 | 0,
|
119 | 122 | 1,
|
120 |
| - new \PHPStan\Type\StringType, |
| 123 | + new StringType, |
121 | 124 | ),
|
122 | 125 | ]
|
123 | 126 | );
|
|
130 | 133 | 'where',
|
131 | 134 | 0,
|
132 | 135 | 0,
|
133 |
| - new \PHPStan\Type\ObjectType('Illuminate\Contracts\Database\Query\Builder'), |
| 136 | + new ObjectType('Illuminate\Contracts\Database\Query\Builder'), |
134 | 137 | ),
|
135 | 138 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
136 | 139 | 'Illuminate\Validation\Rules\Exists',
|
137 | 140 | 'where',
|
138 | 141 | 1,
|
139 | 142 | 0,
|
140 |
| - new \PHPStan\Type\ObjectType('Illuminate\Contracts\Database\Query\Builder'), |
| 143 | + new ObjectType('Illuminate\Contracts\Database\Query\Builder'), |
141 | 144 | ),
|
142 | 145 | new AddParamTypeForFunctionLikeWithinCallLikeArgDeclaration(
|
143 | 146 | 'Illuminate\Validation\Rules\Exists',
|
144 | 147 | 'using',
|
145 | 148 | 0,
|
146 | 149 | 0,
|
147 |
| - new \PHPStan\Type\ObjectType('Illuminate\Contracts\Database\Query\Builder'), |
| 150 | + new ObjectType('Illuminate\Contracts\Database\Query\Builder'), |
148 | 151 | ),
|
149 | 152 | ]
|
150 | 153 | );
|
|
0 commit comments