@@ -73,9 +73,6 @@ public function getSubscribedEvents()
7373 ];
7474 }
7575
76- /**
77- * @psalm-suppress TypeDoesNotContainType, NoValue
78- */
7976 public function postGenerateSchemaTable (GenerateSchemaTableEventArgs $ eventArgs ): void
8077 {
8178 $ cm = $ eventArgs ->getClassMetadata ();
@@ -104,7 +101,6 @@ public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $eventArgs)
104101 if ($ this ->isDbal4_3 ()) {
105102 $ tableName = $ this ->config ->getTablePrefix ().$ entityTable ->getObjectName ()->toString ().$ this ->config ->getTableSuffix ();
106103 } else {
107- /** @psalm-suppress InternalMethod */
108104 $ tableName = $ this ->config ->getTablePrefix ().$ entityTable ->getName ().$ this ->config ->getTableSuffix (); // @phpstan-ignore-line
109105 }
110106 $ revisionTable = $ schema ->createTable ($ tableName );
@@ -122,24 +118,19 @@ public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $eventArgs)
122118 $ primaryKey = $ entityTable ->getPrimaryKeyConstraint ();
123119 \assert (null !== $ primaryKey );
124120 $ pkColumns = $ primaryKey ->getColumnNames ();
125- /** @psalm-suppress ArgumentTypeCoercion */
126121 $ pkColumns [] = new UnqualifiedName (Identifier::unquoted ($ this ->config ->getRevisionFieldName ())); // @phpstan-ignore-line
127122 $ editor = PrimaryKeyConstraint::editor ()->setColumnNames (...$ pkColumns )->setIsClustered ($ primaryKey ->isClustered ());
128123 $ revisionTable ->addPrimaryKeyConstraint ($ editor ->create ());
129124 } else {
130- /** @psalm-suppress DeprecatedMethod */
131125 $ primaryKey = $ entityTable ->getPrimaryKey ();
132126 \assert (null !== $ primaryKey );
133- /** @psalm-suppress DeprecatedMethod */
134127 $ pkColumns = $ primaryKey ->getColumns ();
135128 $ pkColumns [] = $ this ->config ->getRevisionFieldName ();
136- /** @psalm-suppress DeprecatedMethod */
137129 $ revisionTable ->setPrimaryKey ($ pkColumns );
138130 }
139131 if ($ this ->isDbal4_3 ()) {
140132 $ revIndexName = $ this ->config ->getRevisionFieldName ().'_ ' .md5 ($ revisionTable ->getObjectName ()->toString ()).'_idx ' ;
141133 } else {
142- /** @psalm-suppress InternalMethod */
143134 $ revIndexName = $ this ->config ->getRevisionFieldName ().'_ ' .md5 ($ revisionTable ->getName ()).'_idx ' ; // @phpstan-ignore-line
144135 }
145136 $ revisionTable ->addIndex ([$ this ->config ->getRevisionFieldName ()], $ revIndexName );
@@ -183,13 +174,9 @@ private function createForeignKeys(Table $relatedTable, Table $revisionsTable):
183174 $ revisionForeignKeyName
184175 );
185176 } elseif ($ this ->isDbal4 ()) {
186- /** @psalm-suppress InternalMethod */
187177 $ revisionForeignKeyName = $ this ->config ->getRevisionFieldName ().'_ ' .md5 ($ relatedTable ->getName ()).'_fk ' ; // @phpstan-ignore-line
188- /** @psalm-suppress DeprecatedMethod */
189178 $ primaryKey = $ revisionsTable ->getPrimaryKey ();
190179 \assert (null !== $ primaryKey );
191- /** @psalm-suppress InternalMethod */
192- /** @psalm-suppress DeprecatedMethod */
193180 $ relatedTable ->addForeignKeyConstraint (
194181 $ revisionsTable ->getName (), // @phpstan-ignore-line
195182 [$ this ->config ->getRevisionFieldName ()],
@@ -198,13 +185,9 @@ private function createForeignKeys(Table $relatedTable, Table $revisionsTable):
198185 $ revisionForeignKeyName
199186 );
200187 } else {
201- /** @psalm-suppress InternalMethod */
202188 $ revisionForeignKeyName = $ this ->config ->getRevisionFieldName ().'_ ' .md5 ($ relatedTable ->getName ()).'_fk ' ; // @phpstan-ignore-line
203- /** @psalm-suppress DeprecatedMethod */
204189 $ primaryKey = $ revisionsTable ->getPrimaryKey ();
205190 \assert (null !== $ primaryKey );
206- /** @psalm-suppress DeprecatedMethod */
207- /** @psalm-suppress InvalidArgument */
208191 $ relatedTable ->addForeignKeyConstraint (
209192 $ revisionsTable , // @phpstan-ignore-line doctrine/dbal 3 support for old addForeignKeyConstraint() signature
210193 [$ this ->config ->getRevisionFieldName ()],
@@ -223,7 +206,6 @@ private function addColumnToTable(Column $column, Table $targetTable): void
223206 if ($ this ->isDbal4_3 ()) {
224207 $ columnName = $ column ->getObjectName ()->toString ();
225208 } else {
226- /** @psalm-suppress InternalMethod */
227209 $ columnName = $ column ->getName (); // @phpstan-ignore-line
228210 }
229211
@@ -246,7 +228,6 @@ private function addColumnToTable(Column $column, Table $targetTable): void
246228 if ($ this ->isDbal4_3 ()) {
247229 $ targetColumn ->setPlatformOptions (['charset ' => $ column ->getCharset (), 'collation ' => $ column ->getCollation ()]);
248230 } else {
249- /** @psalm-suppress DeprecatedMethod */
250231 $ targetColumn ->setPlatformOptions ($ column ->getPlatformOptions ());
251232 }
252233
@@ -273,7 +254,6 @@ private function createRevisionsTable(Schema $schema): Table
273254 $ editor = PrimaryKeyConstraint::editor ()->setColumnNames ($ id )->setIsClustered (true );
274255 $ revisionsTable ->addPrimaryKeyConstraint ($ editor ->create ());
275256 } else {
276- /** @psalm-suppress DeprecatedMethod */
277257 $ revisionsTable ->setPrimaryKey (['id ' ]);
278258 }
279259
@@ -286,7 +266,6 @@ private function createRevisionJoinTableForJoinTable(Schema $schema, string $joi
286266 if ($ this ->isDbal4_3 ()) {
287267 $ revisionJoinTableName = $ this ->config ->getTablePrefix ().$ joinTable ->getObjectName ()->toString ().$ this ->config ->getTableSuffix ();
288268 } else {
289- /** @psalm-suppress InternalMethod */
290269 $ revisionJoinTableName = $ this ->config ->getTablePrefix ().$ joinTable ->getName ().$ this ->config ->getTableSuffix (); // @phpstan-ignore-line
291270 }
292271
@@ -298,7 +277,6 @@ private function createRevisionJoinTableForJoinTable(Schema $schema, string $joi
298277 if ($ this ->isDbal4_3 ()) {
299278 $ tableName = $ this ->config ->getTablePrefix ().$ joinTable ->getObjectName ()->toString ().$ this ->config ->getTableSuffix ();
300279 } else {
301- /** @psalm-suppress InternalMethod */
302280 $ tableName = $ this ->config ->getTablePrefix ().$ joinTable ->getName ().$ this ->config ->getTableSuffix (); // @phpstan-ignore-line
303281 }
304282 $ revisionJoinTable = $ schema ->createTable ($ tableName );
@@ -311,7 +289,6 @@ private function createRevisionJoinTableForJoinTable(Schema $schema, string $joi
311289 if ($ this ->isDbal4_3 ()) {
312290 $ revisionJoinTable ->addColumn ($ column ->getObjectName ()->toString (), $ typeRegistry ->lookupName ($ column ->getType ()), $ options );
313291 } else {
314- /** @psalm-suppress InternalMethod */
315292 $ revisionJoinTable ->addColumn ($ column ->getName (), $ typeRegistry ->lookupName ($ column ->getType ()), $ options ); // @phpstan-ignore-line
316293 }
317294 }
@@ -321,23 +298,18 @@ private function createRevisionJoinTableForJoinTable(Schema $schema, string $joi
321298 if ($ this ->isDbal4_3 ()) {
322299 $ pk = $ joinTable ->getPrimaryKeyConstraint ();
323300 $ pkColumns = null !== $ pk ? $ pk ->getColumnNames () : [];
324- /** @psalm-suppress ArgumentTypeCoercion */
325301 $ pkColumns [] = new UnqualifiedName (Identifier::unquoted ($ this ->config ->getRevisionFieldName ())); // @phpstan-ignore-line
326302 $ editor = PrimaryKeyConstraint::editor ()->setColumnNames (...$ pkColumns )->setIsClustered (!(null !== $ pk ) || $ pk ->isClustered ());
327303 $ revisionJoinTable ->addPrimaryKeyConstraint ($ editor ->create ());
328304 } else {
329- /** @psalm-suppress DeprecatedMethod */
330305 $ pk = $ joinTable ->getPrimaryKey ();
331- /** @psalm-suppress DeprecatedMethod */
332306 $ pkColumns = null !== $ pk ? $ pk ->getColumns () : [];
333307 $ pkColumns [] = $ this ->config ->getRevisionFieldName ();
334- /** @psalm-suppress DeprecatedMethod */
335308 $ revisionJoinTable ->setPrimaryKey ($ pkColumns );
336309 }
337310 if ($ this ->isDbal4_3 ()) {
338311 $ revIndexName = $ this ->config ->getRevisionFieldName ().'_ ' .md5 ($ revisionJoinTable ->getObjectName ()->toString ()).'_idx ' ;
339312 } else {
340- /** @psalm-suppress InternalMethod */
341313 $ revIndexName = $ this ->config ->getRevisionFieldName ().'_ ' .md5 ($ revisionJoinTable ->getName ()).'_idx ' ; // @phpstan-ignore-line
342314 }
343315 $ revisionJoinTable ->addIndex ([$ this ->config ->getRevisionFieldName ()], $ revIndexName );
0 commit comments