[Debug] remove return types that break FC badly
This commit is contained in:
parent
effae8a643
commit
cb5ef6ec18
@ -36,12 +36,18 @@ class FlattenException
|
|||||||
private $file;
|
private $file;
|
||||||
private $line;
|
private $line;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return static
|
||||||
|
*/
|
||||||
public static function create(\Exception $exception, $statusCode = null, array $headers = [])
|
public static function create(\Exception $exception, $statusCode = null, array $headers = [])
|
||||||
{
|
{
|
||||||
return static::createFromThrowable($exception, $statusCode, $headers);
|
return static::createFromThrowable($exception, $statusCode, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function createFromThrowable(\Throwable $exception, int $statusCode = null, array $headers = []): self
|
/**
|
||||||
|
* @return static
|
||||||
|
*/
|
||||||
|
public static function createFromThrowable(\Throwable $exception, int $statusCode = null, array $headers = [])
|
||||||
{
|
{
|
||||||
$e = new static();
|
$e = new static();
|
||||||
$e->setMessage($exception->getMessage());
|
$e->setMessage($exception->getMessage());
|
||||||
|
@ -38,12 +38,12 @@ class FlattenException extends LegacyFlattenException
|
|||||||
private $file;
|
private $file;
|
||||||
private $line;
|
private $line;
|
||||||
|
|
||||||
public static function create(\Exception $exception, $statusCode = null, array $headers = []): LegacyFlattenException
|
public static function create(\Exception $exception, $statusCode = null, array $headers = []): self
|
||||||
{
|
{
|
||||||
return static::createFromThrowable($exception, $statusCode, $headers);
|
return static::createFromThrowable($exception, $statusCode, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function createFromThrowable(\Throwable $exception, int $statusCode = null, array $headers = []): LegacyFlattenException
|
public static function createFromThrowable(\Throwable $exception, int $statusCode = null, array $headers = []): self
|
||||||
{
|
{
|
||||||
$e = new static();
|
$e = new static();
|
||||||
$e->setMessage($exception->getMessage());
|
$e->setMessage($exception->getMessage());
|
||||||
@ -228,7 +228,7 @@ class FlattenException extends LegacyFlattenException
|
|||||||
/**
|
/**
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setPrevious(LegacyFlattenException $previous): self
|
final public function setPrevious(LegacyFlattenException $previous): self
|
||||||
{
|
{
|
||||||
$this->previous = $previous;
|
$this->previous = $previous;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user