Skip to content

Commit

Permalink
correct incorrect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mike4git committed Aug 15, 2023
1 parent 6f8fafe commit 493e432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Populator/ArrayConvertingPopulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ final class ArrayConvertingPopulator implements Populator
public function __construct(
Converter $converter,
string $sourceArrayPropertyName,
string $sourceArrayItemPropertyName,
string $targetPropertyName,
?string $sourceArrayItemPropertyName = null,
PropertyAccessorInterface $itemAccessor = null,
PropertyAccessorInterface $accessor = null,
) {
)
{
$this->populator = new ArrayPropertyMappingPopulator(
$targetPropertyName,
$sourceArrayPropertyName,
Expand Down
1 change: 0 additions & 1 deletion tests/app/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ services:
arguments:
$converter: '@test.contactnumber.converter'
$sourceArrayPropertyName: 'phones'
$sourceArrayItemPropertyName: ''
$targetPropertyName: 'contactNumbers'

Neusta\ConverterBundle\Tests\Fixtures\Model\PersonFactory: ~
Expand Down

0 comments on commit 493e432

Please sign in to comment.