It seems like you call parent on a different method (getValue() instead of toNative()). Are you sure this is correct? If so, you might want to change this to $this->getValue().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
38
{
39
if (false === Util::classEquals($this, $enum)) {
40
return false;
41
}
42
43
return $this->toNative() === $enum->toNative();
44
}
45
46
/**
47
* Returns a native string representation of the Enum value
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.