8000 fixed some exception previous type hints · symfony/symfony@f92efeb · GitHub
[go: up one dir, main page]

Skip to content

Commit f92efeb

Browse files
committed
fixed some exception previous type hints
1 parent e9e2f21 commit f92efeb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Config/Exception/FileLoaderLoadException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class FileLoaderLoadException extends \Exception
2424
* @param string $resource The resource that could not be imported
2525
* @param string $sourceResource The original resource importing the new resource
2626
* @param int $code The error code
27-
* @param \Exception $previous A previous exception
27+
* @param \Throwable $previous A previous exception
2828
* @param string $type The type of resource
2929
*/
30-
public function __construct(string $resource, string $sourceResource = null, int $code = null, \Exception $previous = null, string $type = null)
30+
public function __construct(string $resource, string $sourceResource = null, int $code = null, \Throwable $previous = null, string $type = null)
3131
{
3232
$message = '';
3333
if ($previous) {

src/Symfony/Component/Console/Exception/CommandNotFoundException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class CommandNotFoundException extends \InvalidArgumentException implements Exce
2424
* @param string $message Exception message to throw
2525
* @param array $alternatives List of similar defined names
2626
* @param int $code Exception code
27-
* @param \Exception $previous Previous exception used for the exception chaining
27+
* @param \Throwable $previous Previous exception used for the exception chaining
2828
*/
29-
public function __construct(string $message, array $alternatives = [], int $code = 0, \Exception $previous = null)
29+
public function __construct(string $message, array $alternatives = [], int $code = 0, \Throwable $previous = null)
3030
{
3131
parent::__construct($message, $code, $previous);
3232

0 commit comments

Comments
 (0)
0