Skip to content

Could not subclass Codeception\Extension\MultiDb - Fatal error: Call to private method normaliseAsIs() #20

Open
@aurum86

Description

@aurum86

Hello,

MultiDb works fine if I use it directly. But if I want to extend a subclass from it, I get the following:

Fatal error: Call to private method Codeception\Extension\MultiDb::normaliseAsIs() from context 'Codeception\Extension\DbHelper' in /vendor/redmatter/codeception-multidb/src/Codeception/Extension/MultiDb.php on line 966

By changing visibility of private static function normaliseAsIs from private to protected solves the issue. Any chance of this hot fix to be included before final release of 2.0.0 ?

Reproduced using "redmatter/codeception-multidb": "dev-master"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions