The method initialize() does not exist on spec\Loevgaard\SyliusBar...or\BarcodeValidatorSpec. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
19
$this->/** @scrutinizer ignore-call */
20
initialize($executionContext);
Loading history...
20
}
21
22
public function it_is_initializable(): void
23
{
24
$this->shouldHaveType(BarcodeValidator::class);
25
}
26
27
public function it_extends_constraint(): void
28
{
29
$this->beAnInstanceOf(Constraint::class);
30
}
31
32
public function it_validates(ExecutionContextInterface $executionContext): void
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.
The method validate() does not exist on spec\Loevgaard\SyliusBar...or\BarcodeValidatorSpec. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
35
$this->/** @scrutinizer ignore-call */
36
validate('4006381333931', new Barcode());
Loading history...
36
}
37
38
public function it_invalidates(ExecutionContextInterface $executionContext, ConstraintViolationBuilderInterface $constraintViolationBuilder): void
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.