We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | public function validate($value): Result |
||
48 | { |
||
49 | if (!$value instanceof $this->valueClassName) { |
||
50 | $this->logger->debug('Value must be an instance of ' . $this->valueClassName . '.'); |
||
|
|||
51 | throw new InvalidArgumentException('Type of value is not valid.', 1723126505626); |
||
52 | } |
||
53 | return parent::validate($value); |
||
54 | } |
||
56 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.