Skip to content

Commit

Permalink
Merge pull request #27 from sgrossberndt/patch-1
Browse files Browse the repository at this point in the history
Replace call to GeneralUtility::logDeprecatedFunction() with `trigger_error` in v11
  • Loading branch information
bmack authored Oct 10, 2022
2 parents 158579b + 11f1e9e commit 9260a25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Database/PreparedStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ class PreparedStatement
*/
public function __construct($query, $table, array $precompiledQueryParts = [])
{
GeneralUtility::logDeprecatedFunction();
if (method_exists('GeneralUtility', 'logDeprecatedFunction')) {
GeneralUtility::logDeprecatedFunction();
} else {
trigger_error('PreparedStatement from EXT:typo3db_legacy is marked as deprecated, use Doctrine DBAL as it does PreparedStatements built-in', E_USER_DEPRECATED);
}
$this->query = $query;
$this->precompiledQueryParts = $precompiledQueryParts;
$this->table = $table;
Expand Down

0 comments on commit 9260a25

Please sign in to comment.