Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8998701

Browse files
committed
Fixing HypeMC's review
1 parent 0cef288 commit 8998701

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Serializer/Exception/MissingConstructorArgumentsException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class MissingConstructorArgumentsException extends RuntimeException
2727
private $missingConstructorArgumentExceptions = [];
2828

2929
/**
30-
* @param ?class-string $class
3130
* @param MissingConstructorArgumentException[] $missingArguments
31+
* @param ?class-string $class
3232
*/
33-
public function __construct(string $message, int $code = 0, \Throwable $previous = null, string $class = null, array $missingArguments = [])
33+
public function __construct(string $message, int $code = 0, \Throwable $previous = null, array $missingArguments = [], string $class = null)
3434
{
3535
$this->missingConstructorArgumentExceptions = $missingArguments;
3636
$classes = array_unique(array_map(fn (MissingConstructorArgumentException $missingConstructorArgumentException) => $missingConstructorArgumentException->getClass(), $missingArguments));

src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ protected function instantiateObject(array &$data, string $class, array &$contex
417417
),
418418
0,
419419
null,
420-
$class,
421-
$context['missing_constructor_arguments']
420+
$context['missing_constructor_arguments'],
421+
$class
422422
);
423423
}
424424

0 commit comments

Comments
 (0)