Skip to content

Commit 28cb24b

Browse files
committed
Remove redundant cast to array
1 parent 98f6e13 commit 28cb24b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/Doctrine/ORM/Tools/EntityGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ protected function generateTableAnnotation(ClassMetadataInfo $metadata)
10551055
}
10561056

10571057
if (isset($metadata->table['options']) && $metadata->table['options']) {
1058-
$table[] = 'options={' . $this->exportTableOptions((array) $metadata->table['options']) . '}';
1058+
$table[] = 'options={' . $this->exportTableOptions($metadata->table['options']) . '}';
10591059
}
10601060

10611061
if (isset($metadata->table['uniqueConstraints']) && $metadata->table['uniqueConstraints']) {

psalm-baseline.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2703,8 +2703,7 @@
27032703
<PropertyNotSetInConstructor occurrences="1">
27042704
<code>$classToExtend</code>
27052705
</PropertyNotSetInConstructor>
2706-
<RedundantCastGivenDocblockType occurrences="2">
2707-
<code>(array) $metadata-&gt;table['options']</code>
2706+
<RedundantCastGivenDocblockType occurrences="1">
27082707
<code>(bool) $embeddablesImmutable</code>
27092708
</RedundantCastGivenDocblockType>
27102709
<RedundantConditionGivenDocblockType occurrences="1">

0 commit comments

Comments
 (0)