phpstan updates for Smarty move to composer package

This commit is contained in:
Clemens Schwaighofer
2023-02-22 06:42:53 +09:00
parent 47c4c5cb69
commit 16c3653cee
3 changed files with 3 additions and 8 deletions

View File

@@ -1851,7 +1851,6 @@ class IO
// if cursor exists ...
if ($this->cursor_ext[$query_hash]['cursor']) {
/** @phpstan-ignore-next-line claims this is always false, but can be true */
if ($first_call === true) {
$this->cursor_ext[$query_hash]['log'][] = 'First call';
// count the rows returned (if select)
@@ -3048,7 +3047,6 @@ class IO
} else {
// find in all inside the array
$__arr = array_column($this->insert_id_arr, $key);
/** @phpstan-ignore-next-line [Why is this always true?] */
if (count($__arr)) {
return $__arr;
} else {

View File

@@ -453,7 +453,7 @@ class SmartyExtend extends \Smarty
$this->DATA['nav_menu_count'] = count($this->DATA['nav_menu']);
// messages = ['msg' =>, 'class' => 'error/warning/...']
$this->DATA['messages'] = $cms->messages;
} else { /** @phpstan-ignore-line Because I assume object for phpstan */
} else {
$this->DATA['show_ea_extra'] = false;
$this->DATA['ADMIN'] = 0;
$this->DATA['nav_menu'] = [];