From 881f77156c37deea425caef6482783717c466e4f Mon Sep 17 00:00:00 2001 From: neoteknic Date: Sat, 2 Mar 2019 15:15:16 +0100 Subject: [PATCH] Fix php 7.3 bug (#772) --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 0b92f85..f4a0bde 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -453,7 +453,7 @@ class ModelsCommand extends Command //Use reflection to inspect the code, based on Illuminate/Support/SerializableClosure.php $reflection = new \ReflectionMethod($model, $method); // php 7.x type or fallback to docblock - $type = (string) $reflection->getReturnType() ?: $this->getReturnTypeFromDocBlock($reflection); + $type = (string) $reflection->getReturnType() ?: (string)$this->getReturnTypeFromDocBlock($reflection); $file = new \SplFileObject($reflection->getFileName()); $file->seek($reflection->getStartLine() - 1);