mirror of
https://github.com/filp/whoops.git
synced 2026-09-17 21:26:34 +00:00
Minor fixes
This commit is contained in:
@@ -68,7 +68,7 @@ class Inspector
|
||||
/**
|
||||
* Returns an Inspector for a previous Exception, if any.
|
||||
* @todo Clean this up a bit, cache stuff a bit better.
|
||||
* @return \Whoops\Exception\Inspector|null
|
||||
* @return Inspector
|
||||
*/
|
||||
public function getPreviousExceptionInspector()
|
||||
{
|
||||
|
||||
@@ -18,16 +18,19 @@ interface HandlerInterface
|
||||
|
||||
/**
|
||||
* @param Run $run
|
||||
* @return void
|
||||
*/
|
||||
public function setRun(Run $run);
|
||||
|
||||
/**
|
||||
* @param Exception $exception
|
||||
* @return void
|
||||
*/
|
||||
public function setException(Exception $exception);
|
||||
|
||||
/**
|
||||
* @param Inspector $inspector
|
||||
* @return void
|
||||
*/
|
||||
public function setInspector(Inspector $inspector);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class PrettyPageHandler extends Handler
|
||||
private $extraTables = array();
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
* @var bool
|
||||
*/
|
||||
private $handleUnconditionally = false;
|
||||
|
||||
@@ -294,7 +294,7 @@ class PrettyPageHandler extends Handler
|
||||
* @throws InvalidArgumentException If editor resolver does not return a string
|
||||
* @param string $filePath
|
||||
* @param int $line
|
||||
* @return string|bool
|
||||
* @return false|string
|
||||
*/
|
||||
public function getEditorHref($filePath, $line)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
namespace Whoops\Provider\Zend;
|
||||
|
||||
use Whoops\Run;
|
||||
|
||||
use Zend\Mvc\View\Http\ExceptionStrategy as BaseExceptionStrategy;
|
||||
use Zend\Mvc\MvcEvent;
|
||||
use Zend\Mvc\Application;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
namespace Whoops\Provider\Zend;
|
||||
|
||||
use Whoops\Run;
|
||||
|
||||
use Zend\Mvc\View\Http\RouteNotFoundStrategy as BaseRouteNotFoundStrategy;
|
||||
use Zend\Mvc\MvcEvent;
|
||||
use Zend\Stdlib\ResponseInterface as Response;
|
||||
|
||||
+4
-4
@@ -152,7 +152,7 @@ class Run
|
||||
/**
|
||||
* Silence particular errors in particular files
|
||||
* @param array|string $patterns List or a single regex pattern to match
|
||||
* @param integer $levels Defaults to E_STRICT | E_DEPRECATED
|
||||
* @param int $levels Defaults to E_STRICT | E_DEPRECATED
|
||||
* @return \Whoops\Run
|
||||
*/
|
||||
public function silenceErrorsInPaths($patterns, $levels = 10240)
|
||||
@@ -178,7 +178,7 @@ class Run
|
||||
* use 502, 503, or another 5xx family code.
|
||||
*
|
||||
* @param bool|int $code
|
||||
* @return bool
|
||||
* @return int|false
|
||||
*/
|
||||
public function sendHttpCode($code = null)
|
||||
{
|
||||
@@ -313,7 +313,7 @@ class Run
|
||||
* @param string $file
|
||||
* @param int $line
|
||||
*
|
||||
* @return bool
|
||||
* @return bool|null
|
||||
*/
|
||||
public function handleError($level, $message, $file = null, $line = null)
|
||||
{
|
||||
@@ -361,7 +361,7 @@ class Run
|
||||
|
||||
/**
|
||||
* In certain scenarios, like in shutdown handler, we can not throw exceptions
|
||||
* @var boolean
|
||||
* @var bool
|
||||
*/
|
||||
private $canThrowExceptions = true;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class TemplateHelper
|
||||
* method also accepts an array of additional variables to be
|
||||
* passed to the template.
|
||||
*
|
||||
* @param string $__template
|
||||
* @param string $template
|
||||
* @param array $additionalVariables
|
||||
*/
|
||||
public function render($template, array $additionalVariables = null)
|
||||
|
||||
@@ -62,7 +62,7 @@ class SoapResponseHandlerTest extends TestCase
|
||||
/**
|
||||
* See if passed string is a valid XML document
|
||||
* @param string $data
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
private function isValidXml($data)
|
||||
{
|
||||
|
||||
@@ -70,7 +70,7 @@ class XmlResponseHandlerTest extends TestCase
|
||||
/**
|
||||
* See if passed string is a valid XML document
|
||||
* @param string $data
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
private function isValidXml($data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user