oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Oro mysql privileges check not compatible with Sentry TracingServerInfoAwareDriverConnection #1077

Open Janvdv opened 2 years ago

Janvdv commented 2 years ago

Summary
While upgrading oro-platform from 4.2.3 to 4.2.7 we encountered an error during oro:platform:update:

Steps to reproduce
install these packages "oro/platform": "4.2.7" "sentry/sentry-symfony": "^4.2.2", "sentry/sentry": "^3.3",

Actual Result

  [Symfony\Component\Debug\Exception\FatalThrowableError]                                                                                                                                                                                                                
  Oro\Component\DoctrineUtils\DBAL\DbPrivilegesProvider::getMySqlGrantedPrivileges(): Argument #1 ($pdo) must be of type Doctrine\DBAL\Driver\PDO\Connection, Sentry\SentryBundle\Tracing\Doctrine\DBAL\TracingServerInfoAwareDriverConnection given, called in /var/ww  
  w/html/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Provider/MysqlDatabaseRequirementsProvider.php on line 57

Expected Result
No Errors

I suspect the typehint for $pdo here should be changed to Doctrine\DBAL\Driver\Connection

Details about your environment