sculpin: PHP Fatal error: Cannot use 'String' as class name as it is reserved in phar: when using php 7
Hey there,
I get the following error when switching to php 7.
Fatal error: Cannot use 'String' as class name as it is reserved in phar:///<path>/sculpin.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18
Kind regards, stev
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 4
- Comments: 49 (29 by maintainers)
@vrkansagara & @stevleibelt: Or as mentioned by @simensen use this work around for PHP 7:
I’m going to close this issue now. I’ve finally blogged about Deprecating Phar Distribution and Embedded Composer. If we still have issues w/ PHP 5.x please open a new issue for that. I’m guessing that we should bite the bullet and upgrade all of our Symfony stack to fix those issues.
Thanks for all your patience. 😃
I’m still having the same problem. I followed the instructions as described by @gnugat except instead of copying the executable, I created a symlink, like so:
@vrkansagara so far, nothing beside switching back to php 5.6.*
Getting closer but I’ll have to look at it more tonight. Looks like I need to update the theme package to support composer-plugin-api
^1.0
instead of just1.0.0
.