| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 146 | public function trace( |
|
| 19 | string $name, |
||
| 20 | callable $callback, |
||
| 21 | array $attributes = [], |
||
| 22 | bool $scoped = false, |
||
| 23 | bool $debug = false, |
||
| 24 | ?TraceKind $traceKind = null, |
||
| 25 | ?int $startTime = null |
||
| 26 | ): mixed { |
||
| 27 | 146 | $span = new Span($name); |
|
| 28 | 146 | $span->setAttributes($attributes); |
|
| 29 | |||
| 30 | 146 | return $this->scope->runScope([ |
|
|
|
|||
| 31 | SpanInterface::class => $span, |
||
| 32 | 146 | ], static fn (InvokerInterface $invoker): mixed => $invoker->invoke($callback)); |
|
| 33 | } |
||
| 40 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.