Skip to content

Commit

Permalink
WIP fix remaining phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 19, 2020
1 parent 8107624 commit dd2c346
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions demos/collection/multitable.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function setModel(\Atk4\Data\Model $model, $route = [])

\Atk4\Ui\Button::addTo($app, ['Re-Import From Filesystem', 'top attached'])->on('click', new \Atk4\Ui\JsModal('Now importing ... ', $vp));

// @phpstan-ignore-next-line
$finderClass::addTo($app, ['bottom attached'])
->addClass('top attached segment')
->setModel($model->setLimit(5), ['SubFolder']);
2 changes: 1 addition & 1 deletion src/Form/Control/DropdownCascade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function init(): void
throw new Exception('cascadeFrom property should be an instance of ' . Form\Control::class);
}

$this->cascadeControlValue = $_POST[$this->cascadeControl->name] ?? $this->cascadeControl->field->get('value');
$this->cascadeControlValue = $_POST[$this->cascadeControl->name] ?? $this->cascadeControl->field->get();

$this->model = $this->cascadeControl->model ? $this->cascadeControl->model->ref($this->reference) : null;

Expand Down
2 changes: 1 addition & 1 deletion src/JsCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function terminateAjax($ajaxec, $msg = null, $success = true)
* Provided with a $response from callbacks convert it into a JavaScript code.
*
* @param array|JsExpressionable $response response from callbacks,
* @param string $chain JavaScript string
* @param JsExpressionable $chain
*/
public function getAjaxec($response, $chain = null): string
{
Expand Down
2 changes: 2 additions & 0 deletions tools/get-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public function requireJs($path, $isAsync = false, $isDefer = false)
} else {
echo " failed\n";
}

return $this;
}

public function requireCss($path)
Expand Down

0 comments on commit dd2c346

Please sign in to comment.