Skip to content

Commit

Permalink
Fix phpstan issue 7342 for atk4/ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 29, 2022
1 parent 05339b9 commit d650c11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Field/SqlExpressionField.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SqlExpressionField extends Field
init as private _init;
}

/** @var \Closure(Model, Expression): (string|Expressionable)|string|Expressionable Used expression. */
/** @var \Closure(object, Expression): (string|Expressionable)|string|Expressionable Used expression. */
public $expr;

/** @var bool Expressions are always read_only. */
Expand Down
6 changes: 3 additions & 3 deletions src/Model/UserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ class UserAction
/** @var string How this action interact with record */
public $modifier;

/** @var \Closure(Model, mixed ...$args): mixed|string code to execute. By default will call entity method with same name */
/** @var \Closure(object, mixed ...$args): mixed|string code to execute. By default will call entity method with same name */
public $callback;

/** @var \Closure(Model, mixed ...$args): mixed|string identical to callback, but would generate preview of action without permanent effect */
/** @var \Closure(object, mixed ...$args): mixed|string identical to callback, but would generate preview of action without permanent effect */
public $preview;

/** @var string|null caption to put on the button */
Expand All @@ -59,7 +59,7 @@ class UserAction
/** @var bool|string|\Closure(static): string Will ask user to confirm. */
public $confirmation = false;

/** @var bool|\Closure(Model): bool setting this to false will disable action. */
/** @var bool|\Closure(object): bool setting this to false will disable action. */
public $enabled = true;

/** @var bool system action will be hidden from UI, but can still be explicitly triggered */
Expand Down
2 changes: 1 addition & 1 deletion src/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Reference
* then used inside getModel() to fully populate and associate with
* persistence.
*
* @var Model|\Closure(Model, static, array): Model|array
* @var Model|\Closure(object, static, array): Model|array
*/
public $model;

Expand Down

0 comments on commit d650c11

Please sign in to comment.