Skip to content

Commit 4862485

Browse files
authored
Fixed PHP 8.4 deprecation warning
1 parent 788e72e commit 4862485

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/ModelsCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,10 +1301,11 @@ protected function getCommentFromDocBlock(\ReflectionMethod $reflection)
13011301
* Get method return type based on it DocBlock comment
13021302
*
13031303
* @param \ReflectionMethod $reflection
1304+
* @param ?\Reflector $reflectorForContext
13041305
*
13051306
* @return null|string
13061307
*/
1307-
protected function getReturnTypeFromDocBlock(\ReflectionMethod $reflection, \Reflector $reflectorForContext = null)
1308+
protected function getReturnTypeFromDocBlock(\ReflectionMethod $reflection, ?\Reflector $reflectorForContext = null)
13081309
{
13091310
$phpDocContext = (new ContextFactory())->createFromReflector($reflectorForContext ?? $reflection);
13101311
$context = new Context(

0 commit comments

Comments
 (0)