Skip to content

Restructure and rename #238

Restructure and rename

Restructure and rename #238

Triggered via pull request April 25, 2024 14:21
Status Failure
Total duration 1m 8s
Billable time 2m
Artifacts 1

static-analysis.yaml

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

Annotations

21 errors and 3 warnings
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/Adapter/AssetSearchAdapter.php#L46
Parameter #1 $items of class Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult constructor expects array<int, Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset>, array<int, Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Asset> given.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/Adapter/AssetSearchAdapter.php#L56
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapter::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/Adapter/AssetSearchAdapter.php#L63
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapter::getAssetById() should return Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset|null but returns Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/Adapter/AssetSearchAdapterInterface.php#L27
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapterInterface::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/AssetSearchResult.php#L38
Parameter $items of method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult::__construct() has invalid type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/AssetSearchResult.php#L38
Property Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult::$items has unknown class Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset as its type.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/AssetSearchResult.php#L53
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult::getItems() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/AssetSearchService.php#L42
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchService::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/AssetSearchService.php#L44
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchService::getAssetById() should return Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Archive|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Audio|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Document|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Folder|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Image|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Text|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Unknown|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Video|Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset|null but returns Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset|null.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DataIndex/AssetSearchServiceInterface.php#L34
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchServiceInterface::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, false)
The job was canceled because "_8_2_highest_11_x-dev_as_" failed.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/Adapter/AssetSearchAdapter.php#L46
Parameter #1 $items of class Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult constructor expects array<int, Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset>, array<int, Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Asset> given.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/Adapter/AssetSearchAdapter.php#L56
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapter::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/Adapter/AssetSearchAdapter.php#L63
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapter::getAssetById() should return Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset|null but returns Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Asset.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/Adapter/AssetSearchAdapterInterface.php#L27
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapterInterface::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/AssetSearchResult.php#L38
Parameter $items of method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult::__construct() has invalid type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/AssetSearchResult.php#L38
Property Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult::$items has unknown class Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset as its type.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/AssetSearchResult.php#L53
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchResult::getItems() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/AssetSearchService.php#L42
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchService::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/AssetSearchService.php#L44
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchService::getAssetById() should return Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Archive|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Audio|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Document|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Folder|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Image|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Text|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Unknown|Pimcore\Bundle\StudioBackendBundle\Asset\Schema\Type\Video|Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset|null but returns Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\Asset|null.
Static Analysis with PHPStan (8.2, highest, false): src/DataIndex/AssetSearchServiceInterface.php#L34
Method Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchServiceInterface::getAssetById() has invalid return type Pimcore\Bundle\StudioBackendBundle\DataIndex\Asset.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v3, 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.2, highest, 11.x-dev as 11.99.9, true)
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/
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "phpstan-baseline.neon". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

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