Skip to content

Commit

Permalink
trigger if called outside for AbstractPlatform::supportsCreateDropDat…
Browse files Browse the repository at this point in the history
…abase (#6064)

<!-- Fill in the relevant information below to help triage your pull
request. -->

|      Q       |   A
|------------- | -----------
| Type         | improvement
| Fixed issues | #6063

#### Summary

See #6063. This makes sure we
silence the deprecation if the method is called from within
AbstractPlatform itself.
  • Loading branch information
dmaicher authored Jun 13, 2023
1 parent dbb8803 commit 4de9c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -4155,7 +4155,7 @@ public function getDefaultSchemaName()
*/
public function supportsCreateDropDatabase()
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5513',
'%s is deprecated.',
Expand Down

0 comments on commit 4de9c19

Please sign in to comment.