Skip to content

Commit

Permalink
fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jan 28, 2023
1 parent e88f29a commit c346710
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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\(\)\.$~'
Expand Down
1 change: 1 addition & 0 deletions src/CardDeck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c346710

Please sign in to comment.