Fix Psalm errors #30
Annotations
9 errors
|
Static analysis:
src/Model/ImagesAwareTrait.php#L21
src/Model/ImagesAwareTrait.php:21:34: LessSpecificImplementedReturnType: The inherited return type 'Doctrine\Common\Collections\Collection<array-key, Sylius\Component\Core\Model\ImageInterface>' for Sylius\Component\Core\Model\ImagesAwareInterface::getImages is more specific than the implemented return type for Loevgaard\SyliusBrandPlugin\Model\ImagesAwareTrait::getimages 'Doctrine\Common\Collections\Collection' (see https://psalm.dev/166)
|
Static analysis:
src/Model/ImagesAwareTrait.php#L26
src/Model/ImagesAwareTrait.php:26:52: LessSpecificImplementedReturnType: The inherited return type 'Doctrine\Common\Collections\Collection<array-key, Sylius\Component\Core\Model\ImageInterface>' for Sylius\Component\Core\Model\ImagesAwareInterface::getImagesByType is more specific than the implemented return type for Loevgaard\SyliusBrandPlugin\Model\ImagesAwareTrait::getimagesbytype 'Doctrine\Common\Collections\Collection' (see https://psalm.dev/166)
|
Static analysis:
src/Model/ProductsAwareTrait.php#L25
src/Model/ProductsAwareTrait.php:25:36: LessSpecificImplementedReturnType: The inherited return type 'Doctrine\Common\Collections\Collection<array-key, Loevgaard\SyliusBrandPlugin\Model\ProductInterface>' for Loevgaard\SyliusBrandPlugin\Model\ProductsAwareInterface::getProducts is more specific than the implemented return type for Loevgaard\SyliusBrandPlugin\Model\ProductsAwareTrait::getproducts 'Doctrine\Common\Collections\Collection' (see https://psalm.dev/166)
|
Static analysis:
tests/Controller/BrandApiTest.php#L38
tests/Controller/BrandApiTest.php:38:58: InvalidArgument: Argument 1 of Loevgaard\SyliusBrandPlugin\Tests\Controller\BrandApiTest::getBrandUrl expects Loevgaard\SyliusBrandPlugin\Model\BrandInterface|string, but -1 provided (see https://psalm.dev/004)
|
Static analysis:
tests/Controller/BrandApiTest.php#L165
tests/Controller/BrandApiTest.php:165:61: InvalidArgument: Argument 1 of Loevgaard\SyliusBrandPlugin\Tests\Controller\BrandApiTest::getBrandUrl expects Loevgaard\SyliusBrandPlugin\Model\BrandInterface|string, but -1 provided (see https://psalm.dev/004)
|
Static analysis:
tests/Controller/BrandImageApiTest.php#L39
tests/Controller/BrandImageApiTest.php:39:90: InvalidArgument: Argument 2 of Loevgaard\SyliusBrandPlugin\Tests\Controller\BrandImageApiTest::getBrandImageUrl expects Loevgaard\SyliusBrandPlugin\Model\BrandImageInterface|string, but -1 provided (see https://psalm.dev/004)
|
Static analysis:
tests/Controller/BrandImageApiTest.php#L147
tests/Controller/BrandImageApiTest.php:147:93: InvalidArgument: Argument 2 of Loevgaard\SyliusBrandPlugin\Tests\Controller\BrandImageApiTest::getBrandImageUrl expects Loevgaard\SyliusBrandPlugin\Model\BrandImageInterface|string, but -1 provided (see https://psalm.dev/004)
|
Static analysis
Process completed with exit code 2.
|
Loading