Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f92efeb

Browse filesBrowse files
committed
fixed some exception previous type hints
1 parent e9e2f21 commit f92efeb
Copy full SHA for f92efeb

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Exception/FileLoaderLoadException.php
+2-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Exception/CommandNotFoundException.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.