Skip to content

Commit

Permalink
stan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Sep 3, 2024
1 parent a177540 commit 4633e38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions controllers/admin/AdminMollieLogsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public function displayAjaxGetLog()

/** @var LoggerInterface $logger */
$logger = $this->module->getService(LoggerInterface::class);
$log = null;

try {
/** @var \MolLog|null $log */
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/CollectionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function findOneBy(array $keyValueCriteria, $langId = null): ?\ObjectMode

$first = $psCollection->getFirst();

return false === $first ? null : $first;
return $first == false ? null : $first;
}
}
2 changes: 1 addition & 1 deletion tests/phpstan/phpstan_base.neon
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ parameters:
- '#Parameter \#1 \$value of method ControllerCore\:\:ajaxRender\(\) expects null, string\|false given.#'
- '#Call to function is_subclass_of\(\) with.*will always evaluate to false.#'
- '#Call to function is_array\(\) with.*will always evaluate to false.#'
- '#Property AdminControllerCore\:\:\$_use_found_rows (string) does not accept false.#'
- '#Property AdminControllerCore\:\:\$_use_found_rows \(string\) does not accept false.#'
- '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_INFORMATIVE.#'
- '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_WARNING.#'
- '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_ERROR.#'
Expand Down

0 comments on commit 4633e38

Please sign in to comment.