Skip to content

Commit 4ed17c2

Browse files
Migration ibexa 4.6.11 && fix error $fieldTypeRegistry must not be accessed
1 parent 9ab75f9 commit 4ed17c2

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

components/SEOBundle/bundle/Controller/Admin/RedirectController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function listAction(
8080
$urlExists = $urlWildcardService->translate($destination);
8181
$errors[] = $translator->trans('nova.redirect.create.exists', ['url' => $destination], 'redirect');
8282
} catch (Exception $e) {
83-
$e->getMessage();
83+
$errors[] = $e->getMessage();
8484
}
8585

8686
if (('' !== $source || '' !== $destination) && ($source !== $destination) && (null === $urlExists)) {
@@ -109,7 +109,7 @@ public function listAction(
109109
}
110110

111111
$page = $request->query->get('page') ?? 1;
112-
$pagerfanta = new Pagerfanta(new ArrayAdapter($urlWildcardService->loadAll()));
112+
$pagerfanta = new Pagerfanta(new ArrayAdapter((array) $urlWildcardService->loadAll()));
113113

114114
$pagerfanta->setMaxPerPage(self::URL_LIMIT);
115115
$pagerfanta->setCurrentPage(min($page, $pagerfanta->getNbPages()));

components/SEOBundle/bundle/Core/FieldType/Metas/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function getName(SPIValue $value, FieldDefinition $fieldDefinition, strin
144144
/**
145145
* Returns information for FieldValue->$sortKey relevant to the field type.
146146
*/
147-
protected function getSortInfo(CoreValue $value): bool
147+
protected function getSortInfo(SPIValue $value): bool
148148
{
149149
return false;
150150
}

components/SEOBundle/bundle/Core/Helper/SiteMapHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Ibexa\Core\MVC\Symfony\Routing\Generator\RouteReferenceGenerator;
1111
use Ibexa\Core\MVC\Symfony\Routing\UrlAliasRouter;
1212
use Ibexa\Core\MVC\Symfony\SiteAccess\SiteAccessServiceInterface;
13-
use Ibexa\Migration\Log\LoggerAwareTrait;
1413
use Psr\Log\LoggerInterface;
1514
use Psr\Log\NullLogger;
1615
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
@@ -19,7 +18,6 @@
1918

2019
class SiteMapHelper
2120
{
22-
use LoggerAwareTrait;
2321

2422
/**
2523
* @var ConfigResolverInterface

components/SEOBundle/bundle/Core/MetaNameSchema.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ class MetaNameSchema extends NameSchemaService
7575
*/
7676
private $configurationResolver;
7777

78-
/**
79-
* @var FieldTypeRegistry
80-
*/
81-
protected $fieldTypeRegistry;
82-
8378
public function __construct(
8479
ContentTypeHandler $contentTypeHandler,
8580
FieldTypeRegistry $fieldTypeRegistry,

0 commit comments

Comments
 (0)