Skip to content
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

YamlGuiDashboardBlockService::validateBlock() must be compatible with Sonata\BlockBundle\Block\BlockAdminServiceInterface::validateBlock #9

Open
netfarma opened this issue May 23, 2016 · 0 comments

Comments

@netfarma
Copy link

Hi.
I have problem in integration with Sonata

Fatal error: Declaration of Sensi\Bundle\YamlGuiBundle\Block\YamlGuiDashboardBlockService::validateBlock() must be compatible with Sonata\BlockBundle\Block\BlockAdminServiceInterface::validateBlock(Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block) in C:\www\damyrade\vendor\sensi\sensi-yaml-gui-bundle\Sensi\Bundle\YamlGuiBundle\Block\YamlGuiDashboardBlockService.php on line 64

Sonata Admin version from composer:
"sonata-project/admin-bundle": "~2.4@dev",
.....
"sonata-project/core-bundle": "~2.3@dev,>=2.3.1",

PHP: 5.5.12

If I change file https://github.com/sensi/SensiYamlGuiBundle/blob/master/Block/YamlGuiDashboardBlockService.php
replacing
use Sonata\AdminBundle\Validator\ErrorElement;
with
use Sonata\CoreBundle\Validator\ErrorElement;
everything seams to be OK

BR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant