mirror of
https://github.com/filp/whoops.git
synced 2026-09-13 19:26:21 +00:00
point to interface instead of implementation
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
namespace Whoops\Handler;
|
||||
|
||||
use Whoops\Exception\Inspector;
|
||||
use Whoops\Run;
|
||||
use Whoops\RunInterface;
|
||||
|
||||
/**
|
||||
* Abstract implementation of a Handler.
|
||||
@@ -24,7 +24,7 @@ abstract class Handler implements HandlerInterface
|
||||
const QUIT = 0x30;
|
||||
|
||||
/**
|
||||
* @var Run
|
||||
* @var RunInterface
|
||||
*/
|
||||
private $run;
|
||||
|
||||
@@ -39,15 +39,15 @@ abstract class Handler implements HandlerInterface
|
||||
private $exception;
|
||||
|
||||
/**
|
||||
* @param Run $run
|
||||
* @param RunInterface $run
|
||||
*/
|
||||
public function setRun(Run $run)
|
||||
public function setRun(RunInterface $run)
|
||||
{
|
||||
$this->run = $run;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Run
|
||||
* @return RunInterface
|
||||
*/
|
||||
protected function getRun()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
namespace Whoops\Handler;
|
||||
|
||||
use Whoops\Exception\Inspector;
|
||||
use Whoops\Run;
|
||||
use Whoops\RunInterface;
|
||||
|
||||
interface HandlerInterface
|
||||
{
|
||||
@@ -17,10 +17,10 @@ interface HandlerInterface
|
||||
public function handle();
|
||||
|
||||
/**
|
||||
* @param Run $run
|
||||
* @param RunInterface $run
|
||||
* @return void
|
||||
*/
|
||||
public function setRun(Run $run);
|
||||
public function setRun(RunInterface $run);
|
||||
|
||||
/**
|
||||
* @param \Throwable $exception
|
||||
|
||||
Reference in New Issue
Block a user