Skip to content

Add components section in Layouts admin interface #141

Add components section in Layouts admin interface

Add components section in Layouts admin interface #141

Triggered via pull request May 9, 2025 13:20
Status Failure
Total duration 36s
Artifacts

static_analysis.yml

on: pull_request
Matrix: static-analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors
psalm
Process completed with exit code 2.
ImplicitToStringCast: lib/Search/Persistence/CriterionHandler/IsComponentUsed.php#L37
lib/Search/Persistence/CriterionHandler/IsComponentUsed.php:37:17: ImplicitToStringCast: Argument 4 of Doctrine\DBAL\Query\QueryBuilder::innerJoin expects null|string, but Doctrine\DBAL\Query\Expression\CompositeExpression provided with a __toString method (see https://psalm.dev/060)
PossiblyInvalidMethodCall: lib/AdminUI/ComponentLayoutsLoader.php#L114
lib/AdminUI/ComponentLayoutsLoader.php:114:37: PossiblyInvalidMethodCall: Cannot call method on possible int variable (see https://psalm.dev/113)
ImplicitToStringCast: lib/AdminUI/ComponentLayoutsLoader.php#L98
lib/AdminUI/ComponentLayoutsLoader.php:98:17: ImplicitToStringCast: Argument 4 of Doctrine\DBAL\Query\QueryBuilder::innerJoin expects null|string, but Doctrine\DBAL\Query\Expression\CompositeExpression provided with a __toString method (see https://psalm.dev/060)
ImplicitToStringCast: lib/AdminUI/ComponentLayoutsLoader.php#L89
lib/AdminUI/ComponentLayoutsLoader.php:89:17: ImplicitToStringCast: Argument 4 of Doctrine\DBAL\Query\QueryBuilder::innerJoin expects null|string, but Doctrine\DBAL\Query\Expression\CompositeExpression provided with a __toString method (see https://psalm.dev/060)
InvalidReturnStatement: lib/AdminUI/ComponentLayoutsLoader.php#L66
lib/AdminUI/ComponentLayoutsLoader.php:66:16: InvalidReturnStatement: The inferred type 'array<string, array{layout?: Netgen\Layouts\API\Values\Layout\Layout, name: string, uuid: string, view_types: array<array-key, string>}>' does not match the declared return type 'array<string, array{layout: Netgen\Layouts\API\Values\Layout\Layout, name: string, uuid: string, view_types: array<array-key, string>}>' for Netgen\Layouts\Ibexa\AdminUI\ComponentLayoutsLoader::loadComponentLayouts (see https://psalm.dev/128)
RedundantPropertyInitializationCheck: lib/AdminUI/ComponentLayoutsLoader.php#L54
lib/AdminUI/ComponentLayoutsLoader.php:54:32: RedundantPropertyInitializationCheck: Property $this->layoutsData with type array<int, array{count: int, layouts: array<string, array{name: string, uuid: string, view_types: array<array-key, string>}>}> should already be set in the constructor (see https://psalm.dev/261)
RedundantPropertyInitializationCheck: lib/AdminUI/ComponentLayoutsLoader.php#L54
lib/AdminUI/ComponentLayoutsLoader.php:54:9: RedundantPropertyInitializationCheck: Property $this->layoutsData with type array<int, array{count: int, layouts: array<string, array{name: string, uuid: string, view_types: array<array-key, string>}>}> should already be set in the constructor (see https://psalm.dev/261)
InvalidReturnType: lib/AdminUI/ComponentLayoutsLoader.php#L45
lib/AdminUI/ComponentLayoutsLoader.php:45:16: InvalidReturnType: The declared return type 'array<string, array{layout: Netgen\Layouts\API\Values\Layout\Layout, name: string, uuid: string, view_types: array<array-key, string>}>' for Netgen\Layouts\Ibexa\AdminUI\ComponentLayoutsLoader::loadComponentLayouts is incorrect, got 'array<string, array{layout?: Netgen\Layouts\API\Values\Layout\Layout, name: string, uuid: string, view_types: array<array-key, string>}>' (see https://psalm.dev/011)
PropertyNotSetInConstructor: lib/AdminUI/ComponentLayoutsLoader.php#L35
lib/AdminUI/ComponentLayoutsLoader.php:35:19: PropertyNotSetInConstructor: Property Netgen\Layouts\Ibexa\AdminUI\ComponentLayoutsLoader::$layoutsData is not defined in constructor of Netgen\Layouts\Ibexa\AdminUI\ComponentLayoutsLoader or in any private or final methods called in the constructor (see https://psalm.dev/074)