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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy