Skip to content

[CI] Added phpstan

[CI] Added phpstan #79

Triggered via pull request December 18, 2024 16:44
@ViniTouViniTou
synchronize #32
add-phpstan
Status Failure
Total duration 57s
Artifacts

ci.yaml

on: pull_request
Matrix: Run code style check
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
Run code style check (8.0): src/bundle/Controller/QueryFieldRestController.php#L90
Parameter #1 $locationId of method Ibexa\Contracts\Core\Repository\LocationService::loadLocation() expects int, int|null given.
Run code style check (8.0): src/bundle/Controller/QueryFieldRestController.php#L119
Parameter #1 $href of method Ibexa\Rest\RequestParser::parseHref() expects string, string|null given.
Run code style check (8.0): src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php#L26
Parameter #2 $callback of function array_filter expects (callable(int|string): bool)|null, Closure(mixed): (0|1|false) given.
Run code style check (8.0): src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php#L33
Argument of an invalid type array|bool|float|int|string|null supplied for foreach, only iterables are supported.
Run code style check (8.0): src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php#L38
Cannot access offset (int|string) on non-empty-array|bool|float|int|string|null.
Run code style check (8.0): src/bundle/DependencyInjection/Compiler/QueryTypesListPass.php#L40
Parameter #1 $queryTypeIdentifier of method Ibexa\Bundle\FieldTypeQuery\DependencyInjection\Compiler\QueryTypesListPass::buildQueryTypeName() expects string, int|string given.
Run code style check (8.0): src/bundle/DependencyInjection/IbexaFieldTypeQueryExtension.php#L95
Parameter #1 $input of static method Symfony\Component\Yaml\Yaml::parse() expects string, string|false given.
Run code style check (8.0): src/lib/ContentView/QueryResultsInjector.php#L27
Property Ibexa\FieldTypeQuery\ContentView\QueryResultsInjector::$views type has no value type specified in iterable type array.
Run code style check (8.0): src/lib/ContentView/QueryResultsInjector.php#L32
Method Ibexa\FieldTypeQuery\ContentView\QueryResultsInjector::__construct() has parameter $views with no value type specified in iterable type array.
Run code style check (8.0): src/lib/ContentView/QueryResultsInjector.php#L38
Property Ibexa\FieldTypeQuery\ContentView\QueryResultsInjector::$queryFieldService (Ibexa\Contracts\FieldTypeQuery\QueryFieldLocationService&Ibexa\Contracts\FieldTypeQuery\QueryFieldServiceInterface) does not accept Ibexa\Contracts\FieldTypeQuery\QueryFieldServiceInterface.
Unit tests (8.1, --ignore-platform-req php)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (8.1, --ignore-platform-req php)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (8.1, --ignore-platform-req php)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (8.0)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (8.0)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (8.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run code style check (8.0)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run code style check (8.0)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run code style check (8.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (7.4)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (7.4)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Unit tests (7.4)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/