Skip to content

Add images use generic search index only #39

Add images use generic search index only

Add images use generic search index only #39

Triggered via pull request February 28, 2024 09:49
Status Failure
Total duration 1m 15s
Artifacts 1

static-analysis.yaml

on: pull_request
Matrix: Static Analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 2 warnings
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
The job was canceled because "_8_1_lowest_false" failed.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Dto/Version.php#L75
Class Pimcore\Bundle\StudioApiBundle\Dto\Asset\Image constructor invoked with 2 parameters, 24 required.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Dto/Version.php#L75
Parameter #1 $format of class Pimcore\Bundle\StudioApiBundle\Dto\Asset\Image constructor expects string, Pimcore\Model\Asset\Image given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Dto/Version.php#L75
Parameter #2 $width of class Pimcore\Bundle\StudioApiBundle\Dto\Asset\Image constructor expects int, Pimcore\Bundle\StudioApiBundle\Dto\Asset\Permissions given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Service/GenericData/V1/AssetSearchAdapter.php#L33
Result of method Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearch::setPage() (void) is used.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Service/GenericData/V1/Hydrator/Asset/ArchiveHydrator.php#L41
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Service/GenericData/V1/Hydrator/Asset/AudioHydrator.php#L41
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Service/GenericData/V1/Hydrator/Asset/DocumentHydrator.php#L43
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Service/GenericData/V1/Hydrator/Asset/FolderHydrator.php#L41
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Service/GenericData/V1/Hydrator/Asset/ImageHydrator.php#L47
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.1, lowest, false): src/Dto/Version.php#L75
Class Pimcore\Bundle\StudioApiBundle\Dto\Asset\Image constructor invoked with 2 parameters, 24 required.
Static Analysis with PHPStan (8.1, lowest, false): src/Dto/Version.php#L75
Parameter #1 $format of class Pimcore\Bundle\StudioApiBundle\Dto\Asset\Image constructor expects string, Pimcore\Model\Asset\Image given.
Static Analysis with PHPStan (8.1, lowest, false): src/Dto/Version.php#L75
Parameter #2 $width of class Pimcore\Bundle\StudioApiBundle\Dto\Asset\Image constructor expects int, Pimcore\Bundle\StudioApiBundle\Dto\Asset\Permissions given.
Static Analysis with PHPStan (8.1, lowest, false): src/Service/GenericData/V1/AssetSearchAdapter.php#L33
Result of method Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearch::setPage() (void) is used.
Static Analysis with PHPStan (8.1, lowest, false): src/Service/GenericData/V1/Hydrator/Asset/ArchiveHydrator.php#L41
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.1, lowest, false): src/Service/GenericData/V1/Hydrator/Asset/AudioHydrator.php#L41
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.1, lowest, false): src/Service/GenericData/V1/Hydrator/Asset/DocumentHydrator.php#L43
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.1, lowest, false): src/Service/GenericData/V1/Hydrator/Asset/FolderHydrator.php#L41
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.1, lowest, false): src/Service/GenericData/V1/Hydrator/Asset/ImageHydrator.php#L47
Parameter #1 $permissions of method Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Hydrator\PermissionsHydratorInterface::hydrate() expects Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\AssetSearchResult\AssetPermissions, Pimcore\Bundle\GenericDataIndexBundle\Permission\AssetPermissions given.
Static Analysis with PHPStan (8.2, highest, false)
The job was canceled because "_8_1_lowest_false" failed.
Static Analysis with PHPStan (8.1, lowest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static Analysis with PHPStan (8.1, lowest, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

Artifacts

Produced during runtime
Name Size
phpstan-baseline.neon Expired
8.49 KB