Skip to content

Commit

Permalink
Ignore errors in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jokesterfr committed Aug 14, 2024
1 parent 2f5a628 commit f986c06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ps_accounts.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer;

if (!defined('_PS_VERSION_')) {
exit;
}
Expand All @@ -14,7 +12,7 @@ class Ps_accounts extends Module
const VERSION = '0.0.0';

/**
* @var ServiceContainer
* @var \PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer
*/
private $serviceContainer;

Expand All @@ -38,7 +36,7 @@ public function __construct()

require_once __DIR__ . '/vendor/autoload.php';

$this->serviceContainer = new ServiceContainer(
$this->serviceContainer = new \PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer(
(string) $this->name,
$this->getLocalPath()
);
Expand Down
3 changes: 3 additions & 0 deletions tests/phpstan/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ parameters:
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- identifier: missingType.iterableValue
- '#Property Ps_accounts::$serviceContainer has unknown class#'
- '#Instantiated class PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer not found.#'
- '#Call to method getService() on an unknown class PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer.#'
level: 9

0 comments on commit f986c06

Please sign in to comment.