1 | <?php |
||
13 | final class Baracoa implements BaracoaInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $bundleSrcBasePath; |
||
19 | |||
20 | /** |
||
21 | * @var ExceptionHandler |
||
22 | */ |
||
23 | private $handler; |
||
24 | |||
25 | /* |
||
26 | * @var V8Js |
||
27 | */ |
||
28 | private $v8; |
||
29 | |||
30 | private $execJs; |
||
31 | |||
32 | /** |
||
33 | * @param string $bundleSrcBasePath Bundled application code base dir path |
||
34 | * @param ExceptionHandlerInterface $handler V8JsScriptException exception handler |
||
35 | * @param V8Js $v8Js V8Js exception handler |
||
36 | */ |
||
37 | 5 | public function __construct(string $bundleSrcBasePath, ExceptionHandlerInterface $handler, V8Js $v8Js = null) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 5 | public function render(string $appName, array $store, array $metas = []) : string |
|
67 | |||
68 | 4 | private function execCode(string $code) : string |
|
76 | |||
77 | 4 | private function getSsrCode($bundleSrc, array $store, array $metas) : string |
|
90 | } |
||
91 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.