| 1 | <?php |
||
| 8 | abstract class Command extends GeneratorCommand |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The name to be appended to the generated resources. |
||
| 13 | * |
||
| 14 | * @var null|string |
||
| 15 | */ |
||
| 16 | protected $appendable; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Getter for appendable |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function appendable() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get and resolve the filename. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | protected function getFileName(): string |
||
| 43 | } |
||
| 44 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.