Skip to content

Commit

Permalink
fix: php stan error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst committed Nov 16, 2023
1 parent 9d1ac3c commit 7245b19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Audit/Collection/AuditCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ class AuditCollection extends Collection
protected $cast = Audit::class;

/**
* @return $this
* @return self
*/
public function automatic(): self
{
return $this->where('type', Audit::TYPE_AUTOMATIC);
}

/**
* @param string $action
*
* @return bool
*/
public function hasAction(string $action): bool
{
return $this->contains('action', $action);
Expand Down

0 comments on commit 7245b19

Please sign in to comment.