diff --git a/src/Command/TinkerCommand.php b/src/Command/TinkerCommand.php index 6725472..bcb7b1d 100644 --- a/src/Command/TinkerCommand.php +++ b/src/Command/TinkerCommand.php @@ -89,6 +89,10 @@ public function handle() $this->getCasters() ); + if ($this->input->getOption('execute')) { + $config->setRawOutput(true); + } + $shell = new Shell($config); $shell->addCommands($this->getCommands()); diff --git a/src/TinkerCaster.php b/src/TinkerCaster.php index 1228e1e..3b3a19d 100644 --- a/src/TinkerCaster.php +++ b/src/TinkerCaster.php @@ -12,6 +12,7 @@ use Exception; use ReflectionException; +use ReflectionObject; use Symfony\Component\VarDumper\Caster\Caster; class TinkerCaster @@ -161,7 +162,7 @@ public static function castModel($model) */ public static function castRedis($redis) { - $refObject = new \ReflectionObject($redis); + $refObject = new ReflectionObject($redis); $refProperty = $refObject->getProperty('poolName'); $refProperty->setAccessible(true);