Skip to content

Commit f7210dc

Browse files
committed
Overriding method rule - do not complain about this case
1 parent 0b9e9a3 commit f7210dc

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tests/PHPStan/Rules/Methods/data/overriding-method.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,23 @@ public static function doDolor()
7171
}
7272

7373
}
74+
75+
class Baz
76+
{
77+
78+
public function __construct(int $i)
79+
{
80+
81+
}
82+
83+
}
84+
85+
class Lorem extends Baz
86+
{
87+
88+
public function __construct(string $s)
89+
{
90+
91+
}
92+
93+
}

0 commit comments

Comments
 (0)