Webador / SlmQueue

Laminas / Mezzio module that integrates with various queue management systems.
Other
137 stars 56 forks source link

Cannot use 'String' as class name as it is reserved in phar #194

Closed iit2011081 closed 7 years ago

iit2011081 commented 7 years ago

When I tried to install using composer I get this error "Cannot use 'String' as class name as it is reserved in phar". Is it because the library is incompatible with php7 ?

basz commented 7 years ago

No I use this lib with php 7.1 without issues

iit2011081 commented 7 years ago

Any solution ?

basz commented 7 years ago

Try composer.phar selfupdate

iit2011081 commented 7 years ago

I already tried but it says Command "self-update" is not defined.

basz commented 7 years ago

Seems you a very old composer version. Simply download the latest one

iit2011081 commented 7 years ago

I tried updating it but it says composer is already the newest version

basz commented 7 years ago

Ok, could tell me exactly what you are doing. Do you get any other information then the mentioned error message? Try running composer in verbose mode.

Op 4 mrt. 2017 om 15:36 heeft Vishal Gangwar notifications@github.com het volgende geschreven:

I tried updating it but it says composer is already the newest version

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

iit2011081 commented 7 years ago

I am getting this error when i tried to install the library. How to run it in verbose mode ? PHP Fatal error: Cannot use 'String' as class name as it is reserved in phar:///my_project_folder/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Fatal error: Cannot use 'String' as class name as it is reserved in phar:///my_project_folder/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

basz commented 7 years ago

https://getcomposer.org/doc/03-cli.md#global-options

What php version are you using?

php -v

Op 4 mrt. 2017 om 17:08 heeft Vishal Gangwar notifications@github.com het volgende geschreven:

I am getting this error when i tried to install the library. How to run it in verbose mode ? PHP Fatal error: Cannot use 'String' as class name as it is reserved in phar:///my_project_folder/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Fatal error: Cannot use 'String' as class name as it is reserved in phar:///my_project_folder/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

iit2011081 commented 7 years ago

php 7

basz commented 7 years ago

I have no idea what your issue is, but it seems unrelated to slmqueue

Op 4 mrt. 2017 om 18:17 heeft Vishal Gangwar notifications@github.com het volgende geschreven:

php 7

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

iit2011081 commented 7 years ago

Closing the issue as it is related to composer not with the library