Skip to content

Add strict_types

Add strict_types #27

Triggered via push January 15, 2024 14:27
Status Failure
Total duration 1m 6s
Artifacts 1
Matrix: Static Analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 74 warnings, and 32 notices
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/DependencyInjection/Configuration.php#L38
Call to an undefined method Symfony\Component\Config\Definition\Builder\NodeParentInterface::scalarNode().
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
Process completed with exit code 1.
Static Analysis with PHPStan (8.1, lowest, false)
The operation was canceled.
Static Analysis with PHPStan (8.2, highest, false)
The operation was canceled.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis with PHPStan (8.1, lowest, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis with PHPStan (8.2, highest, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L143
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L95
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L96
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L270
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L277
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L90
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L70
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L89
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L321
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L113
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L122
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L126
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L145
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L165
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L321
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L267
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/DependencyInjection/Compiler/SearchIndexFieldDefinitionPass.php#L29
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L100
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L87
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L124
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L156
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L140
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/DependencyInjection/Compiler/SearchIndexFieldDefinitionPass.php#L29
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L240
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L240
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L122
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L169
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L204
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L64
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L113
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L82
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L90
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L255
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L100
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L395
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L89
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L143
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L270
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L81
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L268
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L145
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L239
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/DataObject/FieldDefinitionService.php#L16
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L140
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L81
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L191
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L93
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/DataObject/FieldDefinitionService.php#L16
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L167
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L157
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L303
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L120
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L169
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L87
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L239
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L126
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L96
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L70
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L111
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/DependencyInjection/Compiler/SearchIndexFieldDefinitionPass.php#L30
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L303
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L403
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L255
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L111
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L167
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L157
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L277
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexService/AssetIndexService.php#L156
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/Service/SearchIndex/IndexQueueService.php#L267
Line is longer than allowed by code style (\> 120 columns)
Class overrides a field of a parent class: src/Service/SearchIndex/DataObject/FieldDefinitionAdapter/LocalizedFieldsAdapter.php#L27
\[EA\] Field 'fieldDefinition' is already defined in \\Pimcore\\Bundle\\GenericDataIndexBundle\\Service\\SearchIndex\\DataObject\\FieldDefinitionAdapter\\AbstractAdapter, check our online documentation for options.
'isset(...)' constructs can be merged: src/Service/SearchIndex/IndexService/AssetIndexService.php#L179
\[EA\] This can be merged into the previous 'isset(..., ...\[, ...\])'.
JSON encoding API usage: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L147
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/IndexService/AssetIndexService.php#L137
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L198
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L181
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L166
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L57
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/IndexService/AssetIndexService.php#L118
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/IndexService/DataObjectIndexService.php#L211
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
JSON encoding API usage: src/Service/SearchIndex/OpenSearch/BulkOperationService.php#L54
\[EA\] Please consider taking advantage of JSON_THROW_ON_ERROR flag for this call options.
Fully qualified name usage: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L36
Qualifier can be replaced with an import
Case mismatch in method call or class usage: src/Service/SearchIndex/IndexService/AssetIndexService.php#L164
Case in function/method call doesn't match the case in declaration
Redundant catch clause: src/Service/SearchIndex/DataObject/FieldDefinitionService.php#L35
Exception 'NotFoundExceptionInterface' is never thrown in the corresponding 'try' block
Redundant catch clause: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L58
Exception 'Missing404Exception' is never thrown in the corresponding 'try' block
Redundant catch clause: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L71
Exception 'Missing404Exception' is never thrown in the corresponding 'try' block
Static closure can be used: src/Service/SearchIndex/IndexService/AbstractIndexService.php#L175
\[EA\] This closure can be declared as static (better scoping; in some cases can improve performance).
General exception is thrown: src/Service/SearchIndex/OpenSearch/OpenSearchService.php#L136
\[EA\] \\Exception is too general. Consider throwing one of SPL exceptions instead.

Artifacts

Produced during runtime
Name Size
phpstan-baseline.neon Expired
243 Bytes