@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * Get an array of Laravel tailored casters. |
| 85 | 85 | * |
| 86 | - * @return array |
|
| 86 | + * @return callable[] |
|
| 87 | 87 | */ |
| 88 | 88 | protected function getCasters() |
| 89 | 89 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | /** |
| 98 | 98 | * Get artisan commands to pass through to PsySH. |
| 99 | 99 | * |
| 100 | - * @return array |
|
| 100 | + * @return \Symfony\Component\Console\Command\Command[] |
|
| 101 | 101 | */ |
| 102 | 102 | protected function getCommands() |
| 103 | 103 | { |
@@ -45,13 +45,13 @@ |
||
| 45 | 45 | $results = []; |
| 46 | 46 | foreach (self::$appProperties as $property) { |
| 47 | 47 | try { |
| 48 | - if (method_exists($app, $property)) { |
|
| 49 | - $val = $app->$property(); |
|
| 48 | + if (method_exists($app, $property)) { |
|
| 49 | + $val = $app->$property(); |
|
| 50 | 50 | |
| 51 | - if (! is_null($val)) { |
|
| 52 | - $results[Caster::PREFIX_VIRTUAL.$property] = $val; |
|
| 53 | - } |
|
| 54 | - } |
|
| 51 | + if (! is_null($val)) { |
|
| 52 | + $results[Caster::PREFIX_VIRTUAL.$property] = $val; |
|
| 53 | + } |
|
| 54 | + } |
|
| 55 | 55 | } catch (Exception $e) { |
| 56 | 56 | // |
| 57 | 57 | } |