neoxygen / neo4j-neoclient

Simple PHP HttpClient for the Neo4j ReST API with Multi DB Support
MIT License
121 stars 138 forks source link

Composer install error #34

Closed enaza closed 9 years ago

enaza commented 9 years ago

"name": "PHP User Deprecated Warning", "message": "The ability to pass file names to the Symfony\Component\Yaml\Yaml::parse method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.", "code": 16384, "type": "yii\base\ErrorException",

class NeoClientCoreExtension extends AbstractExtension { public static function getAvailableCommands() { return Yaml::parse(DIR.'/../Resources/extensions/core_commands.yml');

}

Must be

class NeoClientCoreExtension extends AbstractExtension { public static function getAvailableCommands() { return Yaml::parse(file_get_contents(DIR.'/../Resources/extensions/core_commands.yml'));

}

ikwattro commented 9 years ago

I guess this error occurs because you are using dev as minimum stability in your main composer.json file ?

enaza commented 9 years ago

Yes, probably. A stable version not have this problem?

ikwattro commented 9 years ago

No. Using dev as project stability is a bad practice.

https://igor.io/2013/02/07/composer-stability-flags.html

Related to #29