Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jul 22, 2022
1 parent 266b270 commit 46f63ff
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"doctrine/doctrine-bundle": "^2.5",
"doctrine/persistence": "^2.1",
"sonata-project/admin-bundle": "^3.99",
"sonata-project/block-bundle": "^4.0",
"sonata-project/block-bundle": "^4.11",
"sonata-project/doctrine-extensions": "^1.8",
"sonata-project/doctrine-orm-admin-bundle": "^3.19",
"sonata-project/form-extensions": "^1.4",
Expand Down
6 changes: 0 additions & 6 deletions phpstan-baseline.neon

This file was deleted.

1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

parameters:
Expand Down
7 changes: 0 additions & 7 deletions src/Entity/BaseBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
namespace Sonata\PageBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Sonata\PageBundle\Model\Block;
use Sonata\PageBundle\Model\PageBlockInterface;

/**
* The class stores block information.
Expand All @@ -30,11 +28,6 @@ abstract class BaseBlock extends Block
*/
protected $id;

/**
* @var Collection<array-key, PageBlockInterface>
*/
protected $children;

public function __construct()
{
$this->children = new ArrayCollection();
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/block.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<argument type="service" id="twig"/>
<argument type="service" id="sonata.page.site.selector"/>
<argument type="service" id="sonata.page.cms_manager_selector"/>
<argument type="service" id="sonata.page.admin.page"/>
</service>
<service id="sonata.page.block.ajax" class="%sonata.page.block.ajax.class%">
<argument type="service" id="sonata.page.cms_manager_selector"/>
Expand Down
4 changes: 2 additions & 2 deletions tests/App/Entity/SonataPageBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\PageBundle\Entity\BaseBlock;
use Sonata\PageBundle\Model\PageBlockInterface;

/**
* @ORM\Entity
Expand All @@ -41,7 +41,7 @@ class SonataPageBlock extends BaseBlock
* )
* @ORM\OrderBy({"position"="ASC"})
*
* @var Collection<array-key, PageBlockInterface>
* @var Collection<array-key, BlockInterface>
*/
protected $children;

Expand Down
1 change: 1 addition & 0 deletions tests/App/config/sonata.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sonata_block:
http_cache: false
blocks:
sonata.admin.block.admin_list:
contexts: [admin]
Expand Down

0 comments on commit 46f63ff

Please sign in to comment.