Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$results = $this->urlService->findUrls($query);

foreach ($results->items as $result) {
$output->writeln($result->url);
$output->writeln($result->getUrl());
}

return self::SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function onBuildSuggestionCollectionEvent(BuildSuggestionCollectionEvent

try {
$productQuery = new ProductQuery(null, new Criterion\LogicalOr([
new Criterion\ProductName(implode(' ', array_map(static fn (string $word) => "$word*", $words))),
new Criterion\ProductName(implode(' ', array_map(static fn (string $word): string => "$word*", $words))),
new Criterion\ProductCode($words),
new Criterion\ProductType($words),
]), [], 0, $limit);
Expand Down
2 changes: 1 addition & 1 deletion code_samples/multisite/siteaccess/AcmeExampleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function load(array $configs, ContainerBuilder $container): void
$config,
// Any kind of callable can be used here.
// It is called for each declared scope/SiteAccess.
static function ($scopeSettings, $currentScope, ContextualizerInterface $contextualizer) {
static function ($scopeSettings, $currentScope, ContextualizerInterface $contextualizer): void {
// Maps the "name" setting to "acme_example.<$currentScope>.name" container parameter
// It is then possible to retrieve this parameter through ConfigResolver in the application code:
// $helloSetting = $configResolver->getParameter( 'name', 'acme_example' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static function getSubscribedEvents(): array

public function onBlockPreRender(PreRenderEvent $event): void
{
/** @var \Ibexa\FieldTypePage\FieldType\Page\Block\Renderer\Twig\TwigRenderRequest $renderRequest */
$renderRequest = $event->getRenderRequest();
$parameters = $event->getRenderRequest()->getParameters();
$parameters['event_content'] = $this->contentService->loadContent($parameters['event']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static function getSubscribedEvents(): array

public function onBlockPreRender(PreRenderEvent $event): void
{
/** @var \Ibexa\FieldTypePage\FieldType\Page\Block\Renderer\Twig\TwigRenderRequest $renderRequest */
$renderRequest = $event->getRenderRequest();

$parameters = $event->getRenderRequest()->getParameters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static function getSubscribedEvents(): array
public function onBlockPreRender(PreRenderEvent $event): void
{
$blockValue = $event->getBlockValue();
/** @var \Ibexa\FieldTypePage\FieldType\Page\Block\Renderer\Twig\TwigRenderRequest $renderRequest */
$renderRequest = $event->getRenderRequest();

$parameters = $renderRequest->getParameters();
Expand Down
30 changes: 0 additions & 30 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ parameters:
count: 3
path: code_samples/api/public_php_api/src/Command/CreateContentTypeCommand.php

-
message: '#^Access to protected property Ibexa\\Contracts\\Core\\Repository\\Values\\URL\\URL\:\:\$url\.$#'
identifier: property.protected
count: 1
path: code_samples/api/public_php_api/src/Command/FindUrlCommand.php

-
message: '#^Argument of an invalid type Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Search\\AggregationResult supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
Expand Down Expand Up @@ -606,24 +600,12 @@ parameters:
count: 1
path: code_samples/page/custom_page_block/src/Event/Subscriber/BlockEmbedEventEventSubscriber.php

-
message: '#^Call to an undefined method Ibexa\\FieldTypePage\\FieldType\\Page\\Block\\Renderer\\RenderRequestInterface\:\:setParameters\(\)\.$#'
identifier: method.notFound
count: 1
path: code_samples/page/custom_page_block/src/Event/Subscriber/BlockEmbedEventEventSubscriber.php

-
message: '#^Call to an undefined method Ibexa\\FieldTypePage\\FieldType\\Page\\Block\\Renderer\\RenderRequestInterface\:\:getParameters\(\)\.$#'
identifier: method.notFound
count: 1
path: code_samples/page/page_listener/src/Block/Listener/MyBlockListener.php

-
message: '#^Call to an undefined method Ibexa\\FieldTypePage\\FieldType\\Page\\Block\\Renderer\\RenderRequestInterface\:\:setParameters\(\)\.$#'
identifier: method.notFound
count: 1
path: code_samples/page/page_listener/src/Block/Listener/MyBlockListener.php

-
message: '#^Parameter \#1 \$criteria of class Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd constructor expects array\<Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Query\\CriterionInterface\>, array\<int, Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Query\\Criterion\\ObjectStateIdentifier\|null\> given\.$#'
identifier: argument.type
Expand Down Expand Up @@ -666,18 +648,6 @@ parameters:
count: 1
path: code_samples/search/custom/src/Query/SortClause/Elasticsearch/ScoreVisitor.php

-
message: '#^Call to an undefined method Ibexa\\FieldTypePage\\FieldType\\Page\\Block\\Renderer\\RenderRequestInterface\:\:getParameters\(\)\.$#'
identifier: method.notFound
count: 1
path: code_samples/tutorials/page_tutorial/src/Event/RandomBlockListener.php

-
message: '#^Call to an undefined method Ibexa\\FieldTypePage\\FieldType\\Page\\Block\\Renderer\\RenderRequestInterface\:\:setParameters\(\)\.$#'
identifier: method.notFound
count: 1
path: code_samples/tutorials/page_tutorial/src/Event/RandomBlockListener.php

-
message: '#^Cannot call method getValue\(\) on Ibexa\\Contracts\\FieldTypePage\\FieldType\\LandingPage\\Model\\Attribute\|null\.$#'
identifier: method.nonObject
Expand Down
Loading