Skip to content
Snippets Groups Projects
Commit bf9f40a9 authored by Vadim Justus's avatar Vadim Justus
Browse files

#17 Remove return types from Get*EntityList classes in order to be compatible...

#17 Remove return types from Get*EntityList classes in order to be compatible with Magento 2.1 and 2.2
parent 4a69d1cb
No related branches found
No related tags found
1 merge request!20#17 Remove return types from Get*EntityList classes in order to be co…
......@@ -39,7 +39,7 @@ class GetBlockEntryList
/**
* Prepare items array by transforming all configured entries into content entry data models
*/
private function prepare(): void
private function prepare()
{
if (empty($this->items)) {
$blocks = $this->configuration->getList()['blocks'] ?? [];
......@@ -53,7 +53,7 @@ class GetBlockEntryList
/**
* @return BlockEntryInterface[]
*/
public function get(): array
public function get()
{
$this->prepare();
return $this->items;
......
......@@ -39,7 +39,7 @@ class GetPageEntryList
/**
* Prepare items array by transforming all configured entries into content entry data models
*/
private function prepare(): void
private function prepare()
{
if (empty($this->items)) {
$pages = $this->configuration->getList()['pages'] ?? [];
......@@ -53,7 +53,7 @@ class GetPageEntryList
/**
* @return PageEntryInterface[]
*/
public function get(): array
public function get()
{
$this->prepare();
return $this->items;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment