|
20 | 20 | class BenevolentUnionTypeTest extends PHPStanTestCase
|
21 | 21 | {
|
22 | 22 |
|
| 23 | + /** |
| 24 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 25 | + */ |
23 | 26 | public static function dataCanAccessProperties(): Iterator
|
24 | 27 | {
|
25 | 28 | yield [
|
@@ -49,6 +52,9 @@ public function testCanAccessProperties(BenevolentUnionType $type, TrinaryLogic
|
49 | 52 | );
|
50 | 53 | }
|
51 | 54 |
|
| 55 | + /** |
| 56 | + * @return Iterator<int, array{BenevolentUnionType, string, TrinaryLogic}> |
| 57 | + */ |
52 | 58 | public static function dataHasProperty(): Iterator
|
53 | 59 | {
|
54 | 60 | yield [
|
@@ -87,6 +93,9 @@ public function testHasProperty(BenevolentUnionType $type, string $propertyName,
|
87 | 93 | );
|
88 | 94 | }
|
89 | 95 |
|
| 96 | + /** |
| 97 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 98 | + */ |
90 | 99 | public static function dataCanCallMethods(): Iterator
|
91 | 100 | {
|
92 | 101 | yield [
|
@@ -116,6 +125,9 @@ public function testCanCanCallMethods(BenevolentUnionType $type, TrinaryLogic $e
|
116 | 125 | );
|
117 | 126 | }
|
118 | 127 |
|
| 128 | + /** |
| 129 | + * @return Iterator<int, array{BenevolentUnionType, string, TrinaryLogic}> |
| 130 | + */ |
119 | 131 | public static function dataHasMethod(): Iterator
|
120 | 132 | {
|
121 | 133 | yield [
|
@@ -151,6 +163,9 @@ public function testHasMethod(BenevolentUnionType $type, string $methodName, Tri
|
151 | 163 | );
|
152 | 164 | }
|
153 | 165 |
|
| 166 | + /** |
| 167 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 168 | + */ |
154 | 169 | public static function dataCanAccessConstants(): Iterator
|
155 | 170 | {
|
156 | 171 | yield [
|
@@ -180,6 +195,9 @@ public function testCanAccessConstants(BenevolentUnionType $type, TrinaryLogic $
|
180 | 195 | );
|
181 | 196 | }
|
182 | 197 |
|
| 198 | + /** |
| 199 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 200 | + */ |
183 | 201 | public static function dataIsIterable(): Iterator
|
184 | 202 | {
|
185 | 203 | yield [
|
@@ -215,6 +233,9 @@ public function testIsIterable(BenevolentUnionType $type, TrinaryLogic $expected
|
215 | 233 | );
|
216 | 234 | }
|
217 | 235 |
|
| 236 | + /** |
| 237 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 238 | + */ |
218 | 239 | public static function dataIsIterableAtLeastOnce(): Iterator
|
219 | 240 | {
|
220 | 241 | yield [
|
@@ -250,6 +271,9 @@ public function testIsIterableAtLeastOnce(BenevolentUnionType $type, TrinaryLogi
|
250 | 271 | );
|
251 | 272 | }
|
252 | 273 |
|
| 274 | + /** |
| 275 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 276 | + */ |
253 | 277 | public static function dataIsArray(): Iterator
|
254 | 278 | {
|
255 | 279 | yield [
|
@@ -279,6 +303,9 @@ public function testIsArray(BenevolentUnionType $type, TrinaryLogic $expectedRes
|
279 | 303 | );
|
280 | 304 | }
|
281 | 305 |
|
| 306 | + /** |
| 307 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 308 | + */ |
282 | 309 | public static function dataIsString(): Iterator
|
283 | 310 | {
|
284 | 311 | yield [
|
@@ -311,6 +338,9 @@ public function testIsString(BenevolentUnionType $type, TrinaryLogic $expectedRe
|
311 | 338 | );
|
312 | 339 | }
|
313 | 340 |
|
| 341 | + /** |
| 342 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 343 | + */ |
314 | 344 | public static function dataIsNumericString(): Iterator
|
315 | 345 | {
|
316 | 346 | yield [
|
@@ -342,6 +372,9 @@ public function testIsNumericString(BenevolentUnionType $type, TrinaryLogic $exp
|
342 | 372 | );
|
343 | 373 | }
|
344 | 374 |
|
| 375 | + /** |
| 376 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 377 | + */ |
345 | 378 | public static function dataIsNonFalsyString(): Iterator
|
346 | 379 | {
|
347 | 380 | yield [
|
@@ -373,6 +406,9 @@ public function testIsNonFalsyString(BenevolentUnionType $type, TrinaryLogic $ex
|
373 | 406 | );
|
374 | 407 | }
|
375 | 408 |
|
| 409 | + /** |
| 410 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 411 | + */ |
376 | 412 | public static function dataIsLiteralString(): Iterator
|
377 | 413 | {
|
378 | 414 | yield [
|
@@ -404,6 +440,9 @@ public function testIsLiteralString(BenevolentUnionType $type, TrinaryLogic $exp
|
404 | 440 | );
|
405 | 441 | }
|
406 | 442 |
|
| 443 | + /** |
| 444 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 445 | + */ |
407 | 446 | public static function dataIsOffsetAccesible(): Iterator
|
408 | 447 | {
|
409 | 448 | yield [
|
@@ -439,6 +478,9 @@ public function testIsOffsetAccessible(BenevolentUnionType $type, TrinaryLogic $
|
439 | 478 | );
|
440 | 479 | }
|
441 | 480 |
|
| 481 | + /** |
| 482 | + * @return Iterator<int, array{BenevolentUnionType, ConstantStringType, TrinaryLogic}> |
| 483 | + */ |
442 | 484 | public static function dataHasOffsetValueType(): Iterator
|
443 | 485 | {
|
444 | 486 | yield [
|
@@ -477,6 +519,9 @@ public function testHasOffsetValue(BenevolentUnionType $type, Type $offsetType,
|
477 | 519 | );
|
478 | 520 | }
|
479 | 521 |
|
| 522 | + /** |
| 523 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 524 | + */ |
480 | 525 | public static function dataIsCallable(): Iterator
|
481 | 526 | {
|
482 | 527 | yield [
|
@@ -506,6 +551,9 @@ public function testIsCallable(BenevolentUnionType $type, TrinaryLogic $expected
|
506 | 551 | );
|
507 | 552 | }
|
508 | 553 |
|
| 554 | + /** |
| 555 | + * @return Iterator<int, array{BenevolentUnionType, TrinaryLogic}> |
| 556 | + */ |
509 | 557 | public static function dataIsCloneable(): Iterator
|
510 | 558 | {
|
511 | 559 | yield [
|
|
0 commit comments