mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
Updated Rector to commit c0be2b455e4c83c3da737969f40f57dc6a7e6320
c0be2b455e
[CodingStyle] Skip implements interface on MakeInheritedMethodVisibilitySameAsParentRector (#5707)
This commit is contained in:
parent
0b4029ea85
commit
d8f1371a76
|
@ -93,12 +93,18 @@ CODE_SAMPLE
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$hasChanged = \false;
|
$hasChanged = \false;
|
||||||
|
$interfaces = $classReflection->getInterfaces();
|
||||||
foreach ($node->getMethods() as $classMethod) {
|
foreach ($node->getMethods() as $classMethod) {
|
||||||
if ($classMethod->isMagic()) {
|
if ($classMethod->isMagic()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/** @var string $methodName */
|
/** @var string $methodName */
|
||||||
$methodName = $this->getName($classMethod->name);
|
$methodName = $this->getName($classMethod->name);
|
||||||
|
foreach ($interfaces as $interface) {
|
||||||
|
if ($interface->hasNativeMethod($methodName)) {
|
||||||
|
continue 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
foreach ($parentClassReflections as $parentClassReflection) {
|
foreach ($parentClassReflections as $parentClassReflection) {
|
||||||
$nativeClassReflection = $parentClassReflection->getNativeReflection();
|
$nativeClassReflection = $parentClassReflection->getNativeReflection();
|
||||||
// the class reflection above takes also @method annotations into an account
|
// the class reflection above takes also @method annotations into an account
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'bdc09071abc58550a41fdd8a4af515206e022f4c';
|
public const PACKAGE_VERSION = 'c0be2b455e4c83c3da737969f40f57dc6a7e6320';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-03-10 16:21:31';
|
public const RELEASE_DATE = '2024-03-11 06:48:19';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user