Issue Task Closed

#102862Doctrine DBAL `AbstractPlatform::getIdentifierQuoteCharacter()` is deprecated

Stefan Bürk 01/18/24, 13:06 updated 01/30/24, 08:25

Description

`AbstractPlatform::getIdentifierQuoteCharacter()`
is deprecated since Doctrine DBAL 3.7.x and will
be removed with Doctrine DBAL 4.x – with proposing
to use `AbstractPlatform::quoteIdentifier()` to
retrieve it. [1]2

The proposed way to mitigate this depraction looks like

 $quoteChar = (new AbstractPlatform)
   ->quoteSingleIdentifier('fake')[0];

[1] https://github.com/doctrine/dbal/blob/3.7.x/UPGRADE.md#deprecated-abstractplatform-methods-exposing-quote-characters
2 https://github.com/doctrine/dbal/blob/4.0.x/UPGRADE.md#bc-break-removed-abstractplatform-methods-exposing-quote-characters

Reviews 1