| 1 | <?php | ||
| 11 | abstract class RelatedPosition implements RelatedPositionInterface | ||
| 12 | { | ||
| 13 | /** @var Widget */ | ||
| 14 | public $widget; | ||
| 15 | |||
| 16 | /** @var CartPositionInterface */ | ||
| 17 | public $mainPosition; | ||
| 18 | |||
| 19 | /** @var ShoppingCart */ | ||
| 20 | public $cart; | ||
| 21 | |||
| 22 | public function __construct(CartPositionInterface $mainPosition) | ||
| 27 | |||
| 28 | /** @inheritDoc */ | ||
| 29 | public function setWidget($className, array $params = []): RelatedPositionInterface | ||
| 40 | |||
| 41 | /** @inheritDoc */ | ||
| 42 | public function render(): string | ||
| 46 | |||
| 47 | public function calculate(CartPositionInterface $position): CartPositionInterface | ||
| 59 | |||
| 60 | } | ||
| 61 | 
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.