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.
1 parent 788e72e commit 4862485Copy full SHA for 4862485
src/Console/ModelsCommand.php
@@ -1301,10 +1301,11 @@ protected function getCommentFromDocBlock(\ReflectionMethod $reflection)
1301
* Get method return type based on it DocBlock comment
1302
*
1303
* @param \ReflectionMethod $reflection
1304
+ * @param ?\Reflector $reflectorForContext
1305
1306
* @return null|string
1307
*/
- protected function getReturnTypeFromDocBlock(\ReflectionMethod $reflection, \Reflector $reflectorForContext = null)
1308
+ protected function getReturnTypeFromDocBlock(\ReflectionMethod $reflection, ?\Reflector $reflectorForContext = null)
1309
{
1310
$phpDocContext = (new ContextFactory())->createFromReflector($reflectorForContext ?? $reflection);
1311
$context = new Context(
0 commit comments