Skip to content

Commit

Permalink
Fix deprecations (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Dec 2, 2023
1 parent 48bf285 commit 1141bf4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(ParserInterface $parser)
$this->parser = $parser;
}

public function denormalize(FixtureInterface $scope, ?FlagBag $flags = null, $value)
public function denormalize(FixtureInterface $scope, ?FlagBag $flags, $value)
{
if (is_string($value)) {
return $this->parseValue($this->parser, $value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(ValueDenormalizerInterface $decoratedDenormalizer)
* @param mixed $value
* @throws InvalidScopeException
*/
public function denormalize(FixtureInterface $scope, ?FlagBag $flags = null, $value)
public function denormalize(FixtureInterface $scope, ?FlagBag $flags, $value)
{
$value = $this->denormalizer->denormalize($scope, $flags, $value);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ interface ValueDenormalizerInterface
*
* @return ValueInterface|mixed
*/
public function denormalize(FixtureInterface $scope, ?FlagBag $flags = null, $value);
public function denormalize(FixtureInterface $scope, ?FlagBag $flags, $value);
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static function ($match) use ($self, $context, $unresolvedParameters, &$resolved
* @param string $key Key of the parameter that need to be resolved to resolve $parameter
*/
private function resolveStringKey(
?ParameterResolverInterface $resolver = null,
?ParameterResolverInterface $resolver,
Parameter $parameter,
string $key,
ParameterBag $unresolvedParameters,
Expand Down

0 comments on commit 1141bf4

Please sign in to comment.