Project

General

Profile

Actions

Task #102862

closed

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

Added by Stefan Bürk 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2024-01-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF