Skip to content

Commit 0732c5a

Browse files
committed
Fix trait incompatibility
1 parent 181ef1c commit 0732c5a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Testing/Emulated/EmulatesModelQueries.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
trait EmulatesModelQueries
1212
{
1313
use EmulatesQueries {
14+
findOrFail as baseFindOrFail;
1415
addFilterToDatabaseQuery as baseAddFilterToDatabaseQuery;
1516
}
1617

@@ -139,6 +140,14 @@ protected function resultToModelInstance($result): Model
139140
);
140141
}
141142

143+
/**
144+
* {@inheritdoc}
145+
*/
146+
public function findOrFail(string $dn, array|string $columns = ['*']): Model
147+
{
148+
return $this->baseFindOrFail($dn, $columns);
149+
}
150+
142151
/**
143152
* {@inheritdoc}
144153
*/

0 commit comments

Comments
 (0)