Skip to content

Commit 54d70d8

Browse files
authored
Merge pull request #7065 from greg0ire/improve-depr
Improve deprecation
2 parents 9e038c6 + 174053a commit 54d70d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Schema/Table.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ public function setPrimaryKey(array $columnNames, ?string $indexName = null): se
182182
Deprecation::trigger(
183183
'doctrine/dbal',
184184
'https://github.com/doctrine/dbal/pull/6787',
185-
'Using nullable columns in a primary key index is deprecated.',
185+
'Using nullable columns (%s.%s) in a primary key index is deprecated.',
186+
$this->getName(),
187+
$columnName,
186188
);
187189
}
188190

0 commit comments

Comments
 (0)