Hi,
php 7.2 triggers warning on call count or sizeof functions with not an array variable.
When I load data with getSingleScalarResult - result will be not an array, stack trace:
sizeof(): Parameter must be an array or an object that implements Countable
/my_project/vendor/debesha/doctrine-hydration-profiler-bundle/ORM/LoggingHydratorTrait.php:56
/my_project/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:971
/my_project/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:917
/my_project/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:797
/my_project/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:826
...
Hi, php 7.2 triggers warning on call
count
orsizeof
functions with not an array variable. When I load data withgetSingleScalarResult
- result will be not an array, stack trace:Package versions:
php
- 7.2.2symfony/symfony
- 4.0.4doctrine/orm
- 2.5.14doctrine/dbal
- 2.6.3doctrine/doctrine-bundle
- 1.8.1debesha/doctrine-hydration-profiler-bundle
- dev-master@dev (2e5f4c9bfcc5f534e918ff9fa490f2e42924e7eb)