Skip to content

Commit 8201d0f

Browse files
committed
Updated Rector to commit 57894303baab2e24a24387b48c5e94963e78ad26
rectorphp/rector-src@5789430 [Performance][CodingStyle] Check public method only for verify override interface (#5708)
1 parent d8f1371 commit 8201d0f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

rules/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ public function refactor(Node $node) : ?Node
100100
}
101101
/** @var string $methodName */
102102
$methodName = $this->getName($classMethod->name);
103-
foreach ($interfaces as $interface) {
104-
if ($interface->hasNativeMethod($methodName)) {
105-
continue 2;
103+
if ($classMethod->isPublic()) {
104+
foreach ($interfaces as $interface) {
105+
if ($interface->hasNativeMethod($methodName)) {
106+
continue 2;
107+
}
106108
}
107109
}
108110
foreach ($parentClassReflections as $parentClassReflection) {

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 = 'c0be2b455e4c83c3da737969f40f57dc6a7e6320';
22+
public const PACKAGE_VERSION = '57894303baab2e24a24387b48c5e94963e78ad26';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-03-11 06:48:19';
27+
public const RELEASE_DATE = '2024-03-11 00:09:51';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)