Skip to content

Fix composer.json for PHP 8 #12

Fix composer.json for PHP 8

Fix composer.json for PHP 8 #12

Re-run triggered March 27, 2024 13:43
Status Failure
Total duration 41s
Artifacts 2

diagnostics.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 5 warnings
PHP 8.3
Process completed with exit code 1.
PHP 8.1: src/Command/DebugDictionariesCommand.php#L103
RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L126
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L134
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L165
InvalidReturnType: The declared return type 'Generator<string, SplFileInfo, void, void>' for CyberSpectrum\I18NBundle\Configuration\Loader\AbstractFileLoader::glob is incorrect, got 'Generator<string, SplFileInfo, mixed, null>' (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L205
RedundantConditionGivenDocblockType: Docblock-defined type string for $prefix is always string (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L205
RedundantConditionGivenDocblockType: Docblock-defined type string for $prefix is always string (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L234
InvalidArgument: Argument 2 of CyberSpectrum\I18N\Configuration\DefinitionBuilder::buildDictionary expects array{type: string}, but array{dictionary?: string, name: string, type: string} with additional array shape fields (name, dictionary) was provided (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L247
InvalidArgument: Argument 2 of CyberSpectrum\I18N\Configuration\DefinitionBuilder::buildJob expects array{type: string}, but array{name: string, type: string} with additional array shape fields (name) was provided (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L329
RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L346
RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.1: src/Command/DebugDictionariesCommand.php#L103
RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L126
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L134
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L165
InvalidReturnType: The declared return type 'Generator<string, SplFileInfo, void, void>' for CyberSpectrum\I18NBundle\Configuration\Loader\AbstractFileLoader::glob is incorrect, got 'Generator<string, SplFileInfo, mixed, null>' (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L234
InvalidArgument: Argument 2 of CyberSpectrum\I18N\Configuration\DefinitionBuilder::buildDictionary expects array{type: string}, but array{dictionary?: string, name: string, type: string} with additional array shape fields (name, dictionary) was provided (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L247
InvalidArgument: Argument 2 of CyberSpectrum\I18N\Configuration\DefinitionBuilder::buildJob expects array{type: string}, but array{name: string, type: string} with additional array shape fields (name) was provided (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L329
RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.1: src/Configuration/Loader/AbstractFileLoader.php#L346
RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.1: src/Configuration/Loader/YamlLoader.php#L137
MixedArgument: Argument 1 of set_error_handler cannot be mixed, expecting callable(int, string, string=, int=, array<array-key, mixed>=):bool|null (reported by psalm)
PHP 8.1: src/Configuration/Loader/YamlLoader.php#L145
UndefinedVariable: Cannot find referenced variable $prevErrorHandler (reported by psalm)
PHP 8.2: src/Command/DebugDictionariesCommand.php#L103
RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L126
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L134
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L165
InvalidReturnType: The declared return type 'Generator<string, SplFileInfo, void, void>' for CyberSpectrum\I18NBundle\Configuration\Loader\AbstractFileLoader::glob is incorrect, got 'Generator<string, SplFileInfo, mixed, null>' (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L205
RedundantConditionGivenDocblockType: Docblock-defined type string for $prefix is always string (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L205
RedundantConditionGivenDocblockType: Docblock-defined type string for $prefix is always string (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L234
InvalidArgument: Argument 2 of CyberSpectrum\I18N\Configuration\DefinitionBuilder::buildDictionary expects array{type: string}, but array{dictionary?: string, name: string, type: string} with additional array shape fields (name, dictionary) was provided (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L247
InvalidArgument: Argument 2 of CyberSpectrum\I18N\Configuration\DefinitionBuilder::buildJob expects array{type: string}, but array{name: string, type: string} with additional array shape fields (name) was provided (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L329
RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.2: src/Configuration/Loader/AbstractFileLoader.php#L346
RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (reported by psalm)
PHP 8.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.3
No files were found with the provided path: .phpcq/build/. No artifacts will be uploaded.
PHP 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
phpcq-builds-php-8.1 Expired
28.2 KB
phpcq-builds-php-8.2 Expired
29.7 KB