Skip to content

Commit

Permalink
TASK: happy new year phpstan!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jan 8, 2025
1 parent a7bfcf8 commit 3fbdfe4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Neos.Workspace.Ui/Classes/ViewModel/Sorting.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
final readonly class Sorting implements \JsonSerializable, ProtectedContextAwareInterface
{
public function __construct(
/**
* @var 'title'
*/
public string $sortBy,
public bool $sortAscending
) {
Expand All @@ -19,6 +22,9 @@ public function __construct(
}
}

/**
* @param array<mixed> $array
*/
public static function fromArray(array $array): self
{
return new self(
Expand Down

0 comments on commit 3fbdfe4

Please sign in to comment.