File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ protected function prepareModel() : static
63
63
$ type = $ property ->getType ();
64
64
if ( ! $ type instanceof ReflectionNamedType || $ type ->isBuiltin ()) {
65
65
throw new LogicException (
66
- 'The ' . static ::class
67
- . '::$model property must have one type to be instantiated '
66
+ 'Property ' . static ::class
67
+ . '::$model must have a valid named type '
68
68
);
69
69
}
70
70
$ name = $ type ->getName ();
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ protected function expectModelPropertyException() : void
43
43
{
44
44
$ this ->expectException (\LogicException::class);
45
45
$ this ->expectExceptionMessageMatches (
46
- '#The (.+)::\$model property must have one type to be instantiated # '
46
+ '#Property (.+)::\$model must have a valid named type # '
47
47
);
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments