Skip to content

Commit 7e40a11

Browse files
committed
[TypeDeclaration] Skip parent __call() exists on KnownMagicClassMethodTypeRector
1 parent 03c4cbd commit 7e40a11

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Fixture;
4+
5+
final class SkipExistsInParent extends ParentClass
6+
{
7+
public function __call($method, $args)
8+
{
9+
}
10+
}
11+
12+
?>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Source;
6+
7+
abstract class ParentClassWithCall
8+
{
9+
public function __call($method, $args)
10+
{
11+
}
12+
}

0 commit comments

Comments
 (0)