It seems like you call parent on a different method (getJWKSet() instead of rotate()). Are you sure this is correct? If so, you might want to change this to $this->getJWKSet().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It seems like $this->createJWK() targeting Jose\Object\StorableJWKSet::createJWK() can also be of type object<Jose\Object\JWKSet>; however, Jose\Object\JWKSetInterface::prependKey() does only seem to accept object<Jose\Object\JWKInterface>, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
59
60
// Save new key set
61
$this->saveObject($jwkset);
62
}
63
64
/**
65
* Rotate key set if last modification time is due
66
*/
67
private function rotateIfNeeded()
68
{
69
if (isset($this->interval) && $this->interval >= 0) {
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.