basis-company /
opentelemetry-php
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace OpenTelemetry\Transport; |
||
| 6 | |||
| 7 | use OpenTelemetry\Transport; |
||
| 8 | use Tarantool\Queue\Queue; |
||
|
0 ignored issues
–
show
|
|||
| 9 | use Exception; |
||
| 10 | |||
| 11 | class TarantoolQueueTransport implements Transport |
||
| 12 | { |
||
| 13 | private $queue; |
||
| 14 | |||
| 15 | public function write(array $data): bool |
||
| 16 | { |
||
| 17 | return $this->getQueue()->put($data) ? true : false; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getQueue(): Queue |
||
| 21 | { |
||
| 22 | if (!$this->queue) { |
||
| 23 | throw new Exception("Queue should be set"); |
||
| 24 | } |
||
| 25 | return $this->queue; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function setQueue(Queue $queue): self |
||
| 29 | { |
||
| 30 | $this->queue = $queue; |
||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths