Skip to content

Commit f18541b

Browse files
paxalondrejmirtes
authored andcommitted
Add one more test to ensure we are not stucked because of vendors
1 parent 595ef0d commit f18541b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

tests/Rules/Deprecations/data/typehint-deprecated-class-definition.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ class Property
3030
{
3131

3232
}
33+
34+
interface IThinkYourStucked
35+
{
36+
/**
37+
* @param Property|DeprecatedProperty $property
38+
*/
39+
public function oops($property): void;
40+
}

tests/Rules/Deprecations/data/typehint-deprecated-class.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,15 @@ public function setProperties(
3131
}
3232

3333
}
34+
35+
class FooImplNoOverride implements IThinkYourStucked
36+
{
37+
38+
/**
39+
* @param Property $property
40+
*/
41+
public function oops($property): void
42+
{
43+
}
44+
45+
}

0 commit comments

Comments
 (0)