Skip to content

Commit 8a409ca

Browse files
szepeviktorondrejmirtes
authored andcommitted
Fix classname typo in tests
1 parent e33a9c4 commit 8a409ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/PHPStan/Type/Generic/GenericObjectTypeTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function dataIsSuperTypeOf(): array
6363
TrinaryLogic::createYes(),
6464
],
6565
'implementation with @extends with different type args' => [
66-
new GenericObjectType(B\I::class, [new ObjectType('DateTimeInteface')]),
66+
new GenericObjectType(B\I::class, [new ObjectType('DateTimeInterface')]),
6767
new GenericObjectType(B\IImpl::class, [new ObjectType('DateTime')]),
6868
TrinaryLogic::createNo(),
6969
],
@@ -203,12 +203,12 @@ public function dataAccepts(): array
203203
TrinaryLogic::createYes(),
204204
],
205205
'implementation with @extends with different type args' => [
206-
new GenericObjectType(B\I::class, [new ObjectType('DateTimeInteface')]),
206+
new GenericObjectType(B\I::class, [new ObjectType('DateTimeInterface')]),
207207
new GenericObjectType(B\IImpl::class, [new ObjectType('DateTime')]),
208208
TrinaryLogic::createNo(),
209209
],
210210
'generic object accepts normal object of same type' => [
211-
new GenericObjectType(Traversable::class, [new MixedType(true), new ObjectType('DateTimeInteface')]),
211+
new GenericObjectType(Traversable::class, [new MixedType(true), new ObjectType('DateTimeInterface')]),
212212
new ObjectType(Traversable::class),
213213
TrinaryLogic::createYes(),
214214
],

tests/PHPStan/Type/ObjectTypeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public function dataAccepts(): array
484484
],
485485
[
486486
new ObjectType(Traversable::class),
487-
new GenericObjectType(Traversable::class, [new MixedType(true), new ObjectType('DateTimeInteface')]),
487+
new GenericObjectType(Traversable::class, [new MixedType(true), new ObjectType('DateTimeInterface')]),
488488
TrinaryLogic::createYes(),
489489
],
490490
[

0 commit comments

Comments
 (0)