You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Return type mixed of method Bug7652\Options::offsetGet() is not covariant with tentative return type mixed of method ArrayAccess::offsetGet().',
387
+
'Return type mixed of method Bug7652\Options::offsetGet() is not covariant with tentative return type mixed of method ArrayAccess<key-of<TArray of array>,value-of<TArray of array>>::offsetGet().',
388
388
23,
389
389
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
Copy file name to clipboardExpand all lines: tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php
+8-8
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ public function testOverridingFinalMethod(int $phpVersion, string $contravariant
120
120
280,
121
121
],
122
122
[
123
-
'Parameter #1 $index (int) of method OverridingFinalMethod\FixedArrayOffsetExists::offsetExists() is not ' . $contravariantMessage . ' with parameter #1 $offset (mixed) of method ArrayAccess::offsetExists().',
123
+
'Parameter #1 $index (int) of method OverridingFinalMethod\FixedArrayOffsetExists::offsetExists() is not ' . $contravariantMessage . ' with parameter #1 $offset (mixed) of method ArrayAccess<int,mixed>::offsetExists().',
124
124
313,
125
125
],
126
126
];
@@ -472,37 +472,37 @@ public function dataTentativeReturnTypes(): array
472
472
80100,
473
473
[
474
474
[
475
-
'Return type mixed of method TentativeReturnTypes\Foo::getIterator() is not covariant with tentative return type Traversable of method IteratorAggregate::getIterator().',
475
+
'Return type mixed of method TentativeReturnTypes\Foo::getIterator() is not covariant with tentative return type Traversable of method IteratorAggregate<mixed,mixed>::getIterator().',
476
476
8,
477
477
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
478
478
],
479
479
[
480
-
'Return type string of method TentativeReturnTypes\Lorem::getIterator() is not covariant with tentative return type Traversable of method IteratorAggregate::getIterator().',
480
+
'Return type string of method TentativeReturnTypes\Lorem::getIterator() is not covariant with tentative return type Traversable of method IteratorAggregate<mixed,mixed>::getIterator().',
481
481
40,
482
482
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
483
483
],
484
484
[
485
-
'Return type mixed of method TentativeReturnTypes\UntypedIterator::current() is not covariant with tentative return type mixed of method Iterator::current().',
485
+
'Return type mixed of method TentativeReturnTypes\UntypedIterator::current() is not covariant with tentative return type mixed of method Iterator<mixed,mixed>::current().',
486
486
75,
487
487
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
488
488
],
489
489
[
490
-
'Return type mixed of method TentativeReturnTypes\UntypedIterator::next() is not covariant with tentative return type void of method Iterator::next().',
490
+
'Return type mixed of method TentativeReturnTypes\UntypedIterator::next() is not covariant with tentative return type void of method Iterator<mixed,mixed>::next().',
491
491
79,
492
492
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
493
493
],
494
494
[
495
-
'Return type mixed of method TentativeReturnTypes\UntypedIterator::key() is not covariant with tentative return type mixed of method Iterator::key().',
495
+
'Return type mixed of method TentativeReturnTypes\UntypedIterator::key() is not covariant with tentative return type mixed of method Iterator<mixed,mixed>::key().',
496
496
83,
497
497
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
498
498
],
499
499
[
500
-
'Return type mixed of method TentativeReturnTypes\UntypedIterator::valid() is not covariant with tentative return type bool of method Iterator::valid().',
500
+
'Return type mixed of method TentativeReturnTypes\UntypedIterator::valid() is not covariant with tentative return type bool of method Iterator<mixed,mixed>::valid().',
501
501
87,
502
502
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
503
503
],
504
504
[
505
-
'Return type mixed of method TentativeReturnTypes\UntypedIterator::rewind() is not covariant with tentative return type void of method Iterator::rewind().',
505
+
'Return type mixed of method TentativeReturnTypes\UntypedIterator::rewind() is not covariant with tentative return type void of method Iterator<mixed,mixed>::rewind().',
506
506
91,
507
507
'Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.',
0 commit comments