| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function create() : AbstractEngine |
||
| 23 | { |
||
| 24 | $loaderMustache = new Mustache_Engine([ |
||
| 25 | 'loader' => new MustacheLoader(), 'partials_loader' => new MustachePartialsLoader($templateFileResolver)] |
||
|
|
|||
| 26 | ); |
||
| 27 | $stringMustache = new Mustache_Engine(['partials_loader' => new MustachePartialsLoader($templateFileResolver)]); |
||
| 28 | return new MustacheEngine($loaderMustache, $stringMustache); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.