diff --git a/src/Tracy/EventDispatcher.php b/src/Tracy/EventDispatcher.php index a848e6b..ff9c1a3 100644 --- a/src/Tracy/EventDispatcher.php +++ b/src/Tracy/EventDispatcher.php @@ -7,6 +7,7 @@ use Skaut\Skautis\Wsdl\Event\RequestFailEvent; use Skaut\Skautis\Wsdl\Event\RequestPostEvent; use Skaut\Skautis\Wsdl\Event\RequestPreEvent; +use stdClass; /** @@ -20,7 +21,7 @@ class EventDispatcher implements EventDispatcherInterface /** * @param RequestPreEvent|RequestPostEvent|RequestFailEvent $event */ - public function dispatch($event): void + public function dispatch($event): object { switch (true) { case $event instanceof RequestPreEvent: @@ -33,6 +34,8 @@ public function dispatch($event): void $this->queries[] = SkautisQuery::createFromFailEvent($event); break; } + + return new stdClass(); } /** @return SkautisQuery[] */ diff --git a/src/Tracy/Panel.php b/src/Tracy/Panel.php index cf8dc24..545ac14 100644 --- a/src/Tracy/Panel.php +++ b/src/Tracy/Panel.php @@ -19,11 +19,9 @@ class Panel implements Tracy\IBarPanel { use Nette\SmartObject; + /** @var EventDispatcher */ private $eventDispatcher; - /** - * @param $eventDispatcher - */ public function __construct() { $this->eventDispatcher = new EventDispatcher(); diff --git a/src/Tracy/SkautisQuery.php b/src/Tracy/SkautisQuery.php index 8023d33..3d23d8d 100644 --- a/src/Tracy/SkautisQuery.php +++ b/src/Tracy/SkautisQuery.php @@ -20,7 +20,7 @@ class SkautisQuery /** * Parametry SOAP requestu na server. - * @var array + * @var array */ public $args; @@ -42,6 +42,13 @@ class SkautisQuery */ public $result; + /** + * @param string $fname + * @param array $args + * @param array> $trace + * @param float $time + * @param mixed $result + */ private function __construct($fname, $args, $trace, $time, $result) { $this->fname = $fname;