Skip to content

Commit

Permalink
DevKit updates for 2.x branch (#507)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Langlet <[email protected]>
  • Loading branch information
SonataCI and VincentLanglet authored Apr 3, 2024
1 parent c51aa74 commit 4b4bcaa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'no_useless_return' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
'nullable_type_declaration_for_default_null_value' => true,
'ordered_class_elements' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'function', 'const']],
'phpdoc_order' => ['order' => ['var', 'param', 'throws', 'return', 'phpstan-var', 'psalm-var', 'phpstan-param', 'psalm-param', 'phpstan-return', 'psalm-return']],
Expand Down
20 changes: 11 additions & 9 deletions tests/Mapper/Builder/OptionsBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,18 @@ public function testAddJoin(): void
static::assertSame([
'fieldName' => 'groups',
'targetEntity' => 'App\Entity\Group',
'joinColumns' => [[
'name' => 'parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
'joinColumns' => [
[
'name' => 'parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
],
[
'name' => 'another_parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
],
],
[
'name' => 'another_parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
], ],
], $builder->getOptions());
}

Expand Down

0 comments on commit 4b4bcaa

Please sign in to comment.