File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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
6363 $ type = $ property ->getType ();
6464 if ( ! $ type instanceof ReflectionNamedType || $ type ->isBuiltin ()) {
6565 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 '
6868 );
6969 }
7070 $ name = $ type ->getName ();
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ protected function expectModelPropertyException() : void
4343 {
4444 $ this ->expectException (\LogicException::class);
4545 $ this ->expectExceptionMessageMatches (
46- '#The (.+)::\$model property must have one type to be instantiated # '
46+ '#Property (.+)::\$model must have a valid named type # '
4747 );
4848 }
4949
You can’t perform that action at this time.
0 commit comments