llaville / php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions
https://llaville.github.io/php-compatinfo-db/6.12/
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

Explicit dependency on doctrine dbal #93

Closed remicollet closed 3 years ago

remicollet commented 3 years ago

1/ really used

From phpcompatinfo report

  U Doctrine\DBAL\Connection                                                                    user                   5.3.0       
  U Doctrine\ORM\EntityManagerInterface                                                         user                   5.3.0       

2/ version 2 required

Latest version of doctrine/orm allow dbal v2 or v3

But this project doesn't support v3


+ /usr/bin/php -d date.timezone=Europe/Paris compatinfo-db diagnose

In HandleMessageMiddleware.php line 80:

  Call to undefined method Doctrine\DBAL\Result::fetchColumn()  

In ProjectRequirements.php line 146:

  Call to undefined method Doctrine\DBAL\Result::fetchColumn()  

diagnose [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-c|--config CONFIG] [--no-configuration] [--profile] [--] <command>

P.S. v2.13 is the version required by doctrine/orm "doctrine/dbal": "^2.13 || ^3.1.1"

remicollet commented 3 years ago

But your fix is not in any released version!

remicollet commented 3 years ago

And BTW, you use doctrine/dbal, so you MUST require it. implicit dependencies are a mess, a terrible practice