The method getDimention() does not exist on Jackal\ImageMerge\Comman...\CommandOptionInterface. It seems like you code against a sub-type of Jackal\ImageMerge\Comman...\CommandOptionInterface such as Jackal\ImageMerge\Comman...\DimensionCommandOption.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
30
if ($image->getWidth() == $this->options->/** @scrutinizer ignore-call */ getDimention()->getWidth() and $image->getHeight() == $this->options->getDimention()->getHeight()) {
Loading history...
31
return $image;
32
}
33
34
if ($this->options->getDimention()->getWidth() > $image->getWidth() || $this->options->getDimention()->getHeight() > $image->getHeight()) {
35
throw new InvalidArgumentException(sprintf('Crop area exceed, max dimensions are: %s X %s', $image->getWidth(), $image->getHeight()));