It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
15
{
16
$this->shouldHaveType(ChannelDeposit::class);
17
}
18
19
function it_implements_channel_deposit_interface(): void
The method getPrice() does not exist on spec\Gweb\SyliusProductD...tity\ChannelDepositSpec. 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
The method setPrice() does not exist on spec\Gweb\SyliusProductD...tity\ChannelDepositSpec. 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
27
$this->/** @scrutinizer ignore-call */
28
setPrice(null);
Loading history...
28
$this->setPrice(25);
29
$this->getPrice()->shouldReturn(25);
30
}
31
32
function it_has_product_variant(ProductVariantInterface $productVariant): void
The method getProductVariant() does not exist on spec\Gweb\SyliusProductD...tity\ChannelDepositSpec. 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
The method setProductVariant() does not exist on spec\Gweb\SyliusProductD...tity\ChannelDepositSpec. 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
The method getChannelCode() does not exist on spec\Gweb\SyliusProductD...tity\ChannelDepositSpec. 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
The method setChannelCode() does not exist on spec\Gweb\SyliusProductD...tity\ChannelDepositSpec. 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
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.