diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 117c2d5541..c4ed45bd56 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -126,9 +126,6 @@ parameters: - path: 'src/CardDeck.php' message: '~^Access to an undefined property Atk4\\Ui\\AbstractView&Atk4\\Ui\\UserAction\\ExecutorInterface::\$jsSuccess\.$~' - - - path: 'src/CardDeck.php' - message: '~^Call to an undefined method Atk4\\Ui\\AbstractView::addClass\(\)\.$~' - path: 'src/CardDeck.php' message: '~^Call to an undefined method Atk4\\Ui\\AbstractView&Atk4\\Ui\\UserAction\\ExecutorInterface::onHook\(\)\.$~' diff --git a/src/CardDeck.php b/src/CardDeck.php index 2b775bdf71..4ba4f7ad3d 100644 --- a/src/CardDeck.php +++ b/src/CardDeck.php @@ -140,6 +140,7 @@ public function setModel(Model $model, array $fields = null, array $extra = null $count = $this->initPaginator(); if ($count) { foreach ($this->model as $m) { + /** @var Card */ $c = $this->cardHolder->add(Factory::factory([$this->card], ['useLabel' => $this->useLabel, 'useTable' => $this->useTable])); $c->setModel($m, $fields); if ($extra) {