File tree Expand file tree Collapse file tree 5 files changed +4
-66
lines changed Expand file tree Collapse file tree 5 files changed +4
-66
lines changed Original file line number Diff line number Diff line change 93
93
94
94
- name : Upload coverage reports to Codecov
95
95
uses : codecov/codecov-action@v3
96
+ if : matrix.php-version == 8.1
96
97
env :
97
98
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
1
+ coverage :
2
+ ignore :
3
+ - " lib/PhpStan/*"
Original file line number Diff line number Diff line change @@ -39,20 +39,6 @@ public function add(string $class): Reflections
39
39
return $ this ;
40
40
}
41
41
42
- /**
43
- * Destroys the cached ReflectionClass.
44
- *
45
- * Put this here mainly for testing purposes.
46
- *
47
- * @param class-string $class name of a class
48
- */
49
- public function destroy (string $ class ): void
50
- {
51
- if (isset ($ this ->reflections [$ class ])) {
52
- unset($ this ->reflections [$ class ]);
53
- }
54
- }
55
-
56
42
/**
57
43
* Get a cached ReflectionClass.
58
44
*
Original file line number Diff line number Diff line change @@ -37,11 +37,4 @@ final public static function instance(): static
37
37
*/
38
38
return self ::$ instances [$ class_name ] ??= new $ class_name ();
39
39
}
40
-
41
- /**
42
- * Singleton objects should not be cloned.
43
- */
44
- private function __clone ()
45
- {
46
- }
47
40
}
Original file line number Diff line number Diff line change @@ -139,25 +139,6 @@ public function first(string $attribute)
139
139
return $ this ->on ($ attribute )[0 ] ?? null ;
140
140
}
141
141
142
- /**
143
- * Returns the internal errors object.
144
- *
145
- * ```
146
- * $model->errors->get_raw_errors();
147
- *
148
- * # [
149
- * # "name" => ["can't be blank"],
150
- * # "state" => ["is the wrong length (should be 2 chars)"],
151
- * # ]
152
- * ```
153
- *
154
- * @return array<string, array<string>>
155
- */
156
- public function get_raw_errors (): array
157
- {
158
- return $ this ->errors ;
159
- }
160
-
161
142
/**
162
143
* Returns all the error messages as an array.
163
144
*
@@ -247,32 +228,6 @@ public function is_empty()
247
228
return empty ($ this ->errors );
248
229
}
249
230
250
- /**
251
- * Clears out all error messages.
252
- */
253
- public function clear (): void
254
- {
255
- $ this ->errors = [];
256
- }
257
-
258
- /**
259
- * Returns the number of error messages there are.
260
- */
261
- public function size (): int
262
- {
263
- if ($ this ->is_empty ()) {
264
- return 0 ;
265
- }
266
-
267
- $ count = 0 ;
268
-
269
- foreach ($ this ->errors as $ attribute => $ error ) {
270
- $ count += count ($ error );
271
- }
272
-
273
- return $ count ;
274
- }
275
-
276
231
/**
277
232
* Returns an iterator to the error messages.
278
233
*
You can’t perform that action at this time.
0 commit comments