Skip to content
Permalink
Browse files

Declare type with imported namespaces

  • Loading branch information...
o0h committed Feb 27, 2018
1 parent 95296d9 commit b4096f0368ccf920621a4368ba5a9424a7fac9fb
Showing with 8 additions and 7 deletions.
  1. +3 −2 src/Error/SentryErrorHandlerTrait.php
  2. +4 −4 src/Http/Client.php
  3. +1 −1 src/Log/Engine/SentryLog.php
@@ -5,6 +5,7 @@
use Cake\Core\InstanceConfigTrait;
use Cake\Error\PHP7ErrorException;
use Cake\Log\Log;
use Connehito\CakeSentry\Http\Client;
use ErrorException;
use Exception;
@@ -22,7 +23,7 @@ trait SentryErrorHandlerTrait
*/
abstract protected function _getMessage(Exception $exception);
/* @var \Connehito\CakeSentry\Http\Client */
/* @var Client */
protected $client;
/**
@@ -42,7 +43,7 @@ protected function _logError($level, $data)
/**
* Handles exception logging.
*
* @param \Exception $exception Exception instance.
* @param Exception $exception Exception instance.
* @return bool
*/
protected function _logException(Exception $exception)
@@ -25,14 +25,14 @@ class Client
/* @var \Raven_Client */
protected $raven;
/* @var \Psr\Http\Message\ServerRequestInterface */
/* @var ServerRequestInterface */
protected $request;
/**
* Client constructor.
*
* @param array $config config for uses Sentry
* @param \Psr\Http\Message\ServerRequestInterface $request request context message
* @param ServerRequestInterface $request request context message
*/
public function __construct(array $config, ServerRequestInterface $request = null)
{
@@ -46,7 +46,7 @@ public function __construct(array $config, ServerRequestInterface $request = nul
/**
* Set context RequestMessage.
*
* @param null|\Psr\Http\Message\ServerRequestInterface $request if null, factory from global
* @param null|ServerRequestInterface $request if null, factory from global
* @return void
*/
protected function setRequest($request)
@@ -62,7 +62,7 @@ protected function setRequest($request)
/**
* Set context RequestMessage.
*
* @return null|\Psr\Http\Message\ServerRequestInterface contextual request
* @return null|ServerRequestInterface contextual request
*/
public function getRequest()
{
@@ -7,7 +7,7 @@
class SentryLog extends BaseLog
{
/* @var \Connehito\CakeSentry\Http\Client */
/* @var Client */
protected $client;
/**

0 comments on commit b4096f0

Please sign in to comment.
You can’t perform that action at this time.