Fix composer.json for PHP 8 #12
Annotations
10 errors and 1 warning
PHP 8.1 Run tests:
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 Run tests:
src/Configuration/Loader/AbstractFileLoader.php#L126
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
|
PHP 8.1 Run tests:
src/Configuration/Loader/AbstractFileLoader.php#L134
InvalidIterator: Cannot iterate over Generator<string, SplFileInfo, void, void> (reported by psalm)
|
PHP 8.1 Run tests:
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 Run tests:
src/Configuration/Loader/AbstractFileLoader.php#L205
RedundantConditionGivenDocblockType: Docblock-defined type string for $prefix is always string (reported by psalm)
|
PHP 8.1 Run tests:
src/Configuration/Loader/AbstractFileLoader.php#L205
RedundantConditionGivenDocblockType: Docblock-defined type string for $prefix is always string (reported by psalm)
|
PHP 8.1 Run tests:
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 Run tests:
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 Run tests:
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 Run tests:
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)
|
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/.
|
Loading