Skip to content

✨ Adding DependencyBuilder #124

✨ Adding DependencyBuilder

✨ Adding DependencyBuilder #124

Triggered via pull request November 14, 2023 11:09
Status Failure
Total duration 2m 4s
Artifacts

php.yml

on: pull_request
PHP Syntax check 5.6|7.2|7.3|8.0|8.1
47s
PHP Syntax check 5.6|7.2|7.3|8.0|8.1
PHP-CS-Fixer
5s
PHP-CS-Fixer
PHPUnit
1m 54s
PHPUnit
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 4 warnings
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip): src/DependencyBuilder.php#L68
Offset 'installed' does not exist on array{}|array{ps_mbo: array<string, bool|int|string>}.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip): src/DependencyBuilder.php#L136
Method Prestashop\ModuleLibMboInstaller\DependencyBuilder::buildDependenciesContext() should return array{module_display_name: string, module_name: string, module_version: string, ps_version: string, php_version: string, locale: string, dependencies: array{}|array{ps_mbo: array<string, bool|int|string>}} but returns array{module_display_name: string, module_name: string, module_version: string, ps_version: string, php_version: non-empty-string, locale: string, dependencies: array{array{}|array{ps_mbo: array<string, bool|int|string>}}}.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip): src/DependencyBuilder.php#L260
Offset 'dependencies' on array{dependencies: array{}} in empty() always exists and is always falsy.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip): src/DependencyBuilder.php#L261
Method Prestashop\ModuleLibMboInstaller\DependencyBuilder::getDependencies() should return array{array{}|array{ps_mbo: array<string, bool|int|string>}} but returns array{ps_mbo: array<string, bool|int|string>|null}.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip): src/DependencyBuilder.php#L327
Method Prestashop\ModuleLibMboInstaller\DependencyBuilder::getDependenciesSpecification() should return array{dependencies: array{}} but returns array.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/1.7.4.4/prestashop_1.7.4.4.zip): src/DependencyBuilder.php#L68
Offset 'installed' does not exist on array{}|array{ps_mbo: array<string, bool|int|string>}.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/1.7.4.4/prestashop_1.7.4.4.zip): src/DependencyBuilder.php#L136
Method Prestashop\ModuleLibMboInstaller\DependencyBuilder::buildDependenciesContext() should return array{module_display_name: string, module_name: string, module_version: string, ps_version: string, php_version: string, locale: string, dependencies: array{}|array{ps_mbo: array<string, bool|int|string>}} but returns array{module_display_name: string, module_name: string, module_version: string, ps_version: string, php_version: non-empty-string, locale: string, dependencies: array{array{}|array{ps_mbo: array<string, bool|int|string>}}}.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/1.7.4.4/prestashop_1.7.4.4.zip): src/DependencyBuilder.php#L260
Offset 'dependencies' on array{dependencies: array{}} in empty() always exists and is always falsy.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/1.7.4.4/prestashop_1.7.4.4.zip): src/DependencyBuilder.php#L261
Method Prestashop\ModuleLibMboInstaller\DependencyBuilder::getDependencies() should return array{array{}|array{ps_mbo: array<string, bool|int|string>}} but returns array{ps_mbo: array<string, bool|int|string>|null}.
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/1.7.4.4/prestashop_1.7.4.4.zip): src/DependencyBuilder.php#L327
Method Prestashop\ModuleLibMboInstaller\DependencyBuilder::getDependenciesSpecification() should return array{dependencies: array{}} but returns array.
PHP-CS-Fixer
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHPStan (https://github.com/PrestaShop/PrestaShop/releases/download/1.7.4.4/prestashop_1.7.4.4.zip)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP Syntax check 5.6|7.2|7.3|8.0|8.1
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/