From 0732c5a316f245a30b40e9eb67755bdfecd5a34b Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Wed, 14 Jun 2023 12:35:51 -0400 Subject: [PATCH] Fix trait incompatibility --- src/Testing/Emulated/EmulatesModelQueries.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Testing/Emulated/EmulatesModelQueries.php b/src/Testing/Emulated/EmulatesModelQueries.php index 09d35036..6e812d9e 100644 --- a/src/Testing/Emulated/EmulatesModelQueries.php +++ b/src/Testing/Emulated/EmulatesModelQueries.php @@ -11,6 +11,7 @@ trait EmulatesModelQueries { use EmulatesQueries { + findOrFail as baseFindOrFail; addFilterToDatabaseQuery as baseAddFilterToDatabaseQuery; } @@ -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} */