File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 20
20
"league/fractal" : " ^0.19"
21
21
},
22
22
"require-dev" : {
23
- "phpdocumentor/reflection-docblock" : " 3.3.2" ,
24
23
"friendsofphp/php-cs-fixer" : " ~2" ,
25
24
"illuminate/auth" : " ^7.0|^8.0" ,
26
25
"illuminate/cache" : " ^7.0|^8.0" ,
Original file line number Diff line number Diff line change @@ -370,8 +370,15 @@ protected function handlerHint(callable $callback)
370
370
$ reflection = new ReflectionFunction ($ callback );
371
371
372
372
$ exception = $ reflection ->getParameters ()[0 ];
373
+ $ reflectionType = $ exception ->getType ();
373
374
374
- return $ exception ->getClass ()->getName ();
375
+ if ($ reflectionType && ! $ reflectionType ->isBuiltin ()) {
376
+ if ($ reflectionType instanceof \ReflectionNamedType) {
377
+ return $ reflectionType ->getName ();
378
+ }
379
+ }
380
+
381
+ return '' ;
375
382
}
376
383
377
384
/**
You can’t perform that action at this time.
0 commit comments