Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf92efeb

Browse files
committed
fixed some exception previous type hints
1 parente9e2f21 commitf92efeb

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-
publicfunction__construct(string$resource,string$sourceResource =null,int$code =null,\Exception$previous =null,string$type =null)
30+
publicfunction__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-
publicfunction__construct(string$message,array$alternatives = [],int$code =0,\Exception$previous =null)
29+
publicfunction__construct(string$message,array$alternatives = [],int$code =0,\Throwable$previous =null)
3030
{
3131
parent::__construct($message,$code,$previous);
3232

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp