jackalope/jackalope-doctrine-dbal

Catchable Fatal Error: Argument 1 passed to Jackalope\Transport\DoctrineDBAL\Client::setNamespaces() must be of the type array, object given

Closed this issue · 0 comments

Catchable Fatal Error: Argument 1 passed to Jackalope\Transport\DoctrineDBAL\Client::setNamespaces() must be of the type array, object given, called in /Users/Aerendir/Documents/JooServer/_Projects/MyProject/DevRoot/myproject-web/vendor/jackalope/jackalope-doctrine-dbal/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php on line 152 and defined

This is the error I receive running $ php composer.phar update.

The problem is that the Client::setNamespace() is hinted to accept only array, but CachedClient::getNamespaces() call it (on line 152) passing in an \ArrayObject.

Todo: Remove the hinting to Array.

Here is my composer.phar:

"require": {
    "php": ">=5.4",
    "ext-intl": "*",
    "doctrine/orm": "~2.2,>=2.2.3,<2.5",
    "doctrine/dbal": "~2.4",
    "doctrine/doctrine-bundle": "~1.2",
    "doctrine/doctrine-cache-bundle": "1.0.*",
    "doctrine/doctrine-fixtures-bundle": "2.2.*",
    "doctrine/phpcr-bundle": "1.2.*",
    "doctrine/phpcr-odm": "1.2.*",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "incenteev/composer-parameter-handler": "~2.0",
    "jackalope/jackalope-doctrine-dbal": "dev-master",
    "knplabs/knp-menu-bundle": "~2",
    "liip/imagine-bundle": "^1.3",
    "phpcr/phpcr-utils": "~1",
    "sensio/distribution-bundle": "~3.0,>=3.0.12",
    "sensio/framework-extra-bundle": "~3.0,>=3.0.2",
    "serendipity_hq/api_connect": "~0",
    "symfony/symfony": "2.7.*",
    "symfony/assetic-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony-cmf/media-bundle": "^1.2",
    "twig/extensions": "~1.0"