Skip to content

set legacy shop contexts #1795

set legacy shop contexts

set legacy shop contexts #1795

Triggered via push October 19, 2023 13:20
Status Failure
Total duration 21m 23s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

php.yml

on: push
Matrix: PHP Static Analysis
Matrix: PHPUnit
Fit to window
Zoom out
Zoom in

Annotations

17 errors
PHP CS Fixer
Process completed with exit code 8.
PHP Static Analysis (8.1): src/Core/Context/Currency.php#L149
Method PrestaShop\PrestaShop\Core\Context\Currency::getPattern() should return string but returns array.
PHP Static Analysis (8.1): src/Core/Context/ShopContextBuilder.php#L36
Namespace Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.1): src/Core/Context/ShopContextBuilder.php#L91
Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.1): src/Core/Context/ShopContextBuilder.php#L93
Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.1): src/Core/Context/ShopContextBuilder.php#L95
Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.1): src/PrestaShopBundle/EventListener/Context/Admin/ShopContextListener.php#L129
Method PrestaShopBundle\EventListener\Context\Admin\ShopContextListener::changeShopContext() is unused.
PHP Static Analysis (8.1): src/PrestaShopBundle/Twig/Component/EmployeeDropdown.php#L50
Method PrestaShopBundle\Twig\Component\EmployeeDropdown::getEmployee() should return PrestaShop\PrestaShop\Core\Model\EmployeeInterface|null but returns PrestaShop\PrestaShop\Core\Context\Employee|null.
PHP Static Analysis (8.1)
Process completed with exit code 1.
PHP Static Analysis (8.2): src/Core/Context/Currency.php#L149
Method PrestaShop\PrestaShop\Core\Context\Currency::getPattern() should return string but returns array.
PHP Static Analysis (8.2): src/Core/Context/ShopContextBuilder.php#L36
Namespace Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.2): src/Core/Context/ShopContextBuilder.php#L91
Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.2): src/Core/Context/ShopContextBuilder.php#L93
Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.2): src/Core/Context/ShopContextBuilder.php#L95
Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
PHP Static Analysis (8.2): src/PrestaShopBundle/EventListener/Context/Admin/ShopContextListener.php#L129
Method PrestaShopBundle\EventListener\Context\Admin\ShopContextListener::changeShopContext() is unused.
PHP Static Analysis (8.2): src/PrestaShopBundle/Twig/Component/EmployeeDropdown.php#L50
Method PrestaShopBundle\Twig\Component\EmployeeDropdown::getEmployee() should return PrestaShop\PrestaShop\Core\Model\EmployeeInterface|null but returns PrestaShop\PrestaShop\Core\Context\Employee|null.
PHP Static Analysis (8.2)
Process completed with exit code 1.