Skip to content

Commit

Permalink
declare null property mapper because of PHPSTAN 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mike4git committed Aug 15, 2023
1 parent 493e432 commit 01c1109
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DependencyInjection/NeustaConverterExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private function registerConverterConfiguration(string $id, array $config, Conta
->setArguments([
'$targetProperty' => $targetProperty,
'$sourceProperty' => $sourceProperty ?? $targetProperty,
'$mapper' => null,
'$accessor' => new Reference('property_accessor'),
]);
}
Expand All @@ -49,6 +50,7 @@ private function registerConverterConfiguration(string $id, array $config, Conta
->setArguments([
'$targetProperty' => $targetProperty,
'$sourceProperty' => $sourceProperty ?? $targetProperty,
'$mapper' => null,
'$accessor' => new Reference('property_accessor'),
]);
}
Expand Down

0 comments on commit 01c1109

Please sign in to comment.