Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Aerendir opened this issue Jul 26, 2015 · 0 comments
Labels

Comments

@Aerendir
Copy link
Contributor

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"
@lsmith77 lsmith77 added the bug label Jul 26, 2015
lsmith77 added a commit that referenced this issue Jul 27, 2015
#290 Remove the hinting to Array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants