Skip to content

Commit

Permalink
Fix trait incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jun 14, 2023
1 parent 181ef1c commit 0732c5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Testing/Emulated/EmulatesModelQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
trait EmulatesModelQueries
{
use EmulatesQueries {
findOrFail as baseFindOrFail;
addFilterToDatabaseQuery as baseAddFilterToDatabaseQuery;
}

Expand Down Expand Up @@ -139,6 +140,14 @@ protected function resultToModelInstance($result): Model
);
}

/**
* {@inheritdoc}
*/
public function findOrFail(string $dn, array|string $columns = ['*']): Model
{
return $this->baseFindOrFail($dn, $columns);
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 0732c5a

Please sign in to comment.