You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Doctrine\Bundle\DoctrineBundle\DataCollector::getGroupedQueries the percentage of execution time of a query is being calculated. For the calculation executionMS is used in the query information and this value appears to be set in Doctrine\DBAL\Logging\DebugStack::stopQuery of doctrine dbal.
The stopQuery function sets a float in executionMS (microtime(true) - $this->start), while DataCollector::executionTimePercentage has its parameters typed with int and this is apparently the cause of the deprecation warning.
Although not a major problem, this is mildly annoying as it gets triggered for every executed query.
Tested with:
PHP 8.1.0
Symfony 5.4.1
doctrine/doctrine-bundle 2.5.2
doctrine/dbal 3.2.0
The text was updated successfully, but these errors were encountered:
friek
changed the title
DoctrineDataCollector::executionPercent calculation triggers deprecation warning in PHP 8.1
DoctrineDataCollector::executionTimePercentage calculation triggers deprecation warning in PHP 8.1
Dec 10, 2021
In
Doctrine\Bundle\DoctrineBundle\DataCollector::getGroupedQueries
the percentage of execution time of a query is being calculated. For the calculationexecutionMS
is used in the query information and this value appears to be set inDoctrine\DBAL\Logging\DebugStack::stopQuery
of doctrine dbal.The stopQuery function sets a float in executionMS (
microtime(true) - $this->start
), whileDataCollector::executionTimePercentage
has its parameters typed withint
and this is apparently the cause of the deprecation warning.Although not a major problem, this is mildly annoying as it gets triggered for every executed query.
Tested with:
The text was updated successfully, but these errors were encountered: