The method isInverted() does not exist on PhpAidc\LabelPrinter\Contract\Command. It seems like you code against a sub-type of PhpAidc\LabelPrinter\Contract\Command such as PhpAidc\LabelPrinter\Command\TextLine or PhpAidc\LabelPrinter\Command\InternalImage or PhpAidc\LabelPrinter\Command\TextBlock or PhpAidc\LabelPrinter\Command\ExternalImage.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
25
if ($command->/** @scrutinizer ignore-call */ isInverted()) {