Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function newInstance(string $class, array $args) : object |
||
48 | { |
||
49 | $aopClass = $this->weave($class); |
||
50 | $instance = (new ReflectionClass($aopClass))->newInstanceArgs($args); |
||
51 | assert(isset($instance->bindings)); |
||
52 | $instance->bindings = $this->bind->getBindings(); |
||
53 | |||
54 | return $instance; |
||
55 | } |
||
56 | |||
91 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.