fixed some exception previous type hints

This commit is contained in:
Fabien Potencier 2019-03-30 08:40:00 +01:00
parent e9e2f217a3
commit f92efeb429
2 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,10 @@ class FileLoaderLoadException extends \Exception
* @param string $resource The resource that could not be imported
* @param string $sourceResource The original resource importing the new resource
* @param int $code The error code
* @param \Exception $previous A previous exception
* @param \Throwable $previous A previous exception
* @param string $type The type of resource
*/
public function __construct(string $resource, string $sourceResource = null, int $code = null, \Exception $previous = null, string $type = null)
public function __construct(string $resource, string $sourceResource = null, int $code = null, \Throwable $previous = null, string $type = null)
{
$message = '';
if ($previous) {

View File

@ -24,9 +24,9 @@ class CommandNotFoundException extends \InvalidArgumentException implements Exce
* @param string $message Exception message to throw
* @param array $alternatives List of similar defined names
* @param int $code Exception code
* @param \Exception $previous Previous exception used for the exception chaining
* @param \Throwable $previous Previous exception used for the exception chaining
*/
public function __construct(string $message, array $alternatives = [], int $code = 0, \Exception $previous = null)
public function __construct(string $message, array $alternatives = [], int $code = 0, \Throwable $previous = null)
{
parent::__construct($message, $code, $previous);