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)

Most upvoted comments

@vrkansagara & @stevleibelt: Or as mentioned by @simensen use this work around for PHP 7:

git clone https://github.com/sculpin/sculpin.git
cd sculpin
composer install -o
sudo cp bin/sculpin /usr/local/sculpin

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:

git clone https://github.com/sculpin/sculpin.git
cd sculpin
composer install -o
ln -s $PWD/bin/sculpin /usr/local/bin/sculpin

@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 just 1.0.0.

composer require sculpin/sculpin:^2.1@dev dflydev/embedded-composer:^1.0@dev

image http://d.pr/i/9g7w