Fix Psalm errors #30
build.yaml
on: push
Matrix: code-coverage
Matrix: coding-standards
Matrix: dependency-analysis
Matrix: integration-tests
Matrix: Mutation tests
Matrix: static-code-analysis
Matrix: unit-tests
Annotations
43 errors and 8 warnings
Dependency Analysis (PHP8.1 | Deps: lowest | SF~5.4.0)
Process completed with exit code 1.
|
Dependency Analysis (PHP8.1 | Deps: highest | SF~5.4.0)
Process completed with exit code 1.
|
Dependency Analysis (PHP8.2 | Deps: highest | SF~5.4.0)
The job was canceled because "_8_1_lowest__5_4_0" failed.
|
Dependency Analysis (PHP8.2 | Deps: lowest | SF~5.4.0)
The job was canceled because "_8_1_lowest__5_4_0" failed.
|
Unit tests (PHP8.1 | Deps: highest | SF~5.4.0)
Process completed with exit code 2.
|
Integration tests (PHP8.2 | Deps: lowest | SF~5.4.0)
Process completed with exit code 1.
|
Unit tests (PHP8.2 | Deps: highest | SF~5.4.0)
The job was canceled because "_8_1_highest__5_4_0" failed.
|
Unit tests (PHP8.2 | Deps: highest | SF~5.4.0)
Process completed with exit code 2.
|
LessSpecificImplementedReturnType:
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)
|
LessSpecificImplementedReturnType:
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)
|
LessSpecificImplementedReturnType:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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 Code Analysis (PHP8.2 | Deps: highest | SF~5.4.0)
Process completed with exit code 2.
|
Static Code Analysis (PHP8.1 | Deps: lowest | SF~5.4.0)
The job was canceled because "_8_2_highest__5_4_0" failed.
|
LessSpecificImplementedReturnType:
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)
|
LessSpecificImplementedReturnType:
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)
|
LessSpecificImplementedReturnType:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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 Code Analysis (PHP8.1 | Deps: lowest | SF~5.4.0)
Process completed with exit code 2.
|
Static Code Analysis (PHP8.1 | Deps: highest | SF~5.4.0)
The job was canceled because "_8_2_highest__5_4_0" failed.
|
LessSpecificImplementedReturnType:
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)
|
LessSpecificImplementedReturnType:
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)
|
LessSpecificImplementedReturnType:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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 Code Analysis (PHP8.1 | Deps: highest | SF~5.4.0)
Process completed with exit code 2.
|
Coding Standards (PHP8.1 | Deps: highest)
Process completed with exit code 2.
|
Integration tests (PHP8.2 | Deps: highest | SF~5.4.0)
The job was canceled because "_8_2_lowest__5_4_0" failed.
|
Unit tests (PHP8.2 | Deps: lowest | SF~5.4.0)
The job was canceled because "_8_1_highest__5_4_0" failed.
|
Integration tests (PHP8.1 | Deps: highest | SF~5.4.0)
The job was canceled because "_8_2_lowest__5_4_0" failed.
|
Integration tests (PHP8.1 | Deps: lowest | SF~5.4.0)
The job was canceled because "_8_2_lowest__5_4_0" failed.
|
Static Code Analysis (PHP8.2 | Deps: lowest | SF~5.4.0)
The job was canceled because "_8_2_highest__5_4_0" failed.
|
Unit tests (PHP8.1 | Deps: lowest | SF~5.4.0)
The job was canceled because "_8_1_highest__5_4_0" failed.
|
Code Coverage (PHP8.2 | Deps: highest)
Process completed with exit code 2.
|
Mutation tests (8.2, highest)
Process completed with exit code 1.
|
Dependency Analysis (PHP8.1 | Deps: lowest | SF~5.4.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Dependency Analysis (PHP8.1 | Deps: highest | SF~5.4.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (PHP8.1 | Deps: highest | SF~5.4.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Integration tests (PHP8.2 | Deps: lowest | SF~5.4.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Code Analysis (PHP8.2 | Deps: highest | SF~5.4.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Coding Standards (PHP8.1 | Deps: highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code Coverage (PHP8.2 | Deps: highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Mutation tests (8.2, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|