Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function render($migrationName) |
||
31 | { |
||
32 | $loader = new FilesystemLoader(__DIR__ . '/views/%name%'); |
||
|
|||
33 | |||
34 | $view = new PhpEngine(new TemplateNameParser(), $loader); |
||
35 | |||
36 | $this->templateInitialization->setMigrationName($migrationName); |
||
37 | |||
38 | return $view->render($this->getTemplatePath(), array( |
||
39 | 'migrationName' => $migrationName, |
||
40 | 'initUp' => $this->templateInitialization->getInitUp(), |
||
41 | 'initDown' => $this->templateInitialization->getInitDown(), |
||
42 | )); |
||
43 | } |
||
44 | |||
55 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: