-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Installation schema create error #23
Comments
Thanks for reporting, I'll check that! |
Are you sure that you have correct vendor versions installed? Because the latest build has successfully created schema. |
I installed everything via the command:
I also downloaded the zip and made the install, only to get to the same error. Also it says in the php manual that a class cannot implement two interfaces that share function names, since it would cause ambiguity. Isn't it what is done here though with the getSku() method? |
Hello, I am running php 5.3.6 on my local machine and still get this error. I found in a blog someone who said this problem disappeared with php 5.3.10. I tried on another server running php 5.3.21 and the error indeed disappeared. So it seems that php 5.3.3 is not enough for a successful build. I could not find anything in the php doc about this change of behaviour. I am still wondering what are your thoughts about an interface implementing 2 different interfaces with a common method inside with php? Thanks, |
Hi, Same here with a slightly different error:
Works fine on my local environment with PHP 5.4, but I encounter this error on my prod environment with PHP 5.3.3 (debian squeeze). We should set the proper minimum version of PHP in the composer.json file, as the current 5.3.3 is not enough. |
Ouch, not good, not good, we need to check that... Not sure how to deal with those interfaces. Thanks for reporting! |
I'm definitely not an expert in that matter, but maybe we could try something like (source: http://stackoverflow.com/questions/5497613/cannot-implement-two-interfaces-that-have-the-same-method-name):
replacing testMethod with id and sku properties and associated methods. PS: thanks winzou for the amazing symfony2 tutorial! |
Fixed it with PR #22 on CoreBundle. Maybe have a look there... |
Same with PHP 5.3.6:
|
Hi, FatalErrorException: Compile Error: Can't inherit abstract function Sylius\Bundle\InventoryBundle\Model\StockableInterface::getSku() (previously declared abstract in Sylius\Bundle\AssortmentBundle\Model\Variant\VariantInterface) in /home/httpd/servers/devs/sylius/src/Sylius/Bundle/CoreBundle/Model/VariantInterface.php line 27 and FatalErrorException: Compile Error: Can't inherit abstract function Sylius\Bundle\ShippingBundle\Model\ShipmentItemInterface::getId() (previously declared abstract in Sylius\Bundle\InventoryBundle\Model\InventoryUnitInterface) in /home/httpd/servers/fr/malot/devs/sylius/src/Sylius/Bundle/CoreBundle/Model/InventoryUnitInterface.php line 25 and FatalErrorException: Compile Error: Can't inherit abstract function Sylius\Bundle\ShippingBundle\Model\ShipmentItemInterface::getCreatedAt() (previously declared abstract in Sylius\Bundle\InventoryBundle\Model\InventoryUnitInterface) in /home/httpd/servers/fr/malot/devs/sylius/src/Sylius/Bundle/CoreBundle/Model/InventoryUnitInterface.php line 25 and FatalErrorException: Compile Error: Can't inherit abstract function Sylius\Bundle\ShippingBundle\Model\ShipmentItemInterface::getUpdatedAt() (previously declared abstract in Sylius\Bundle\InventoryBundle\Model\InventoryUnitInterface) in /home/httpd/servers/fr/malot/devs/sylius/src/Sylius/Bundle/CoreBundle/Model/InventoryUnitInterface.php line 25 Does someone found a fix, instead of hardly removing duplicate methods referenced in interfaces ? |
For me, it works with php 5.3.21 and php 5.4.13, and it doesn't with php 5.3.3. |
Thanks to @stloyd, this issue should be fixed on next vendor update. I plan to finish it soon, together with Symfony 2.3 update. |
is it fixed? |
It is fixed, please feel free to reopen if you can reproduce it with latest vendors. |
is this really fixed? i just tried installing sylius (multiple times) with the procedure documented in the README:
after executing these steps to account for the ICU version i have on my centos 6.4 box:
php version: 5.4.17 |
just for the archives: |
Change default behavior of dispatchEvent() shortcut in case when event is send as param
Error in prototype model class
Initial operator refactoring, introduce factory
Error in prototype model class
Initial operator refactoring, introduce factory
Change default behavior of dispatchEvent() shortcut in case when event is send as param
[CJMAX-32] Hide social login buttons
Hi,
I followed all the steps of installation successfully until command
which gives the following error:
Fatal error: Can't inherit abstract function Sylius\Bundle\InventoryBundle\Model\StockableInterface::getSku() (previously declared abstract in Sylius\Bundle\AssortmentBundle\Model\Variant\VariantInterface) in /Applications/MAMP/htdocs/delicecook/sylius/vendor/sylius/core-bundle/Sylius/Bundle/CoreBundle/Model/VariantInterface.php on line 27
Has anyone encountered that error?
Thank your for your help,
Alban
The text was updated successfully, but these errors were encountered: