We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02fe22c + 77b599a commit 86f8801Copy full SHA for 86f8801
src/mine-service/src/Abstracts/Mapper.php
@@ -44,7 +44,7 @@ public function getModel(): string
44
if (! empty(CrudModelCollector::list()[static::class])) {
45
$modelClass = CrudModelCollector::list()[static::class];
46
}
47
- if (! class_exists($modelClass) || ! ($modelClass instanceof Model)) {
+ if (! class_exists($modelClass) || ! is_subclass_of($modelClass, Model::class)) {
48
throw new ServiceException('The class to which the ' . static::class . ' class belongs was not found');
49
50
/* @var class-string<Model> $modelClass */
0 commit comments