Skip to content

Commit 174053a

Browse files
committed
Improve deprecation
This should make issues easier to locate.
1 parent 9e038c6 commit 174053a

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)