Skip to content

Signature of wrapper Connection constructor is not enforced #4511

@morozov

Description

@morozov

Psalm on level 2:

ERROR: UnsafeInstantiation - lib/Doctrine/DBAL/DriverManager.php:236:16 - Cannot safely instantiate class Doctrine\DBAL\Connection with "new $class_name" as its constructor might change in child classes (see https://psalm.dev/229)
        return new $wrapperClass($params, $driver, $config, $eventManager);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions