Skip to content

Commit d8f1371

Browse files
committed
Updated Rector to commit c0be2b455e4c83c3da737969f40f57dc6a7e6320
rectorphp/rector-src@c0be2b4 [CodingStyle] Skip implements interface on MakeInheritedMethodVisibilitySameAsParentRector (#5707)
1 parent 0b4029e commit d8f1371

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

rules/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,18 @@ public function refactor(Node $node) : ?Node
9393
return null;
9494
}
9595
$hasChanged = \false;
96+
$interfaces = $classReflection->getInterfaces();
9697
foreach ($node->getMethods() as $classMethod) {
9798
if ($classMethod->isMagic()) {
9899
continue;
99100
}
100101
/** @var string $methodName */
101102
$methodName = $this->getName($classMethod->name);
103+
foreach ($interfaces as $interface) {
104+
if ($interface->hasNativeMethod($methodName)) {
105+
continue 2;
106+
}
107+
}
102108
foreach ($parentClassReflections as $parentClassReflection) {
103109
$nativeClassReflection = $parentClassReflection->getNativeReflection();
104110
// the class reflection above takes also @method annotations into an account

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'bdc09071abc58550a41fdd8a4af515206e022f4c';
22+
public const PACKAGE_VERSION = 'c0be2b455e4c83c3da737969f40f57dc6a7e6320';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-03-10 16:21:31';
27+
public const RELEASE_DATE = '2024-03-11 06:48:19';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)