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 8998701

Browse filesBrowse files
committed
Fixing HypeMC's review
1 parent 0cef288 commit 8998701
Copy full SHA for 8998701

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

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

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

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