test(FileListener): More tests with folders #20
psalm-matrix.yml
on: pull_request
matrix
1m 46s
Matrix: static-analysis
static-psalm-analysis-summary
6s
Annotations
11 errors
InvalidPropertyAssignmentValue:
lib/Hooks/FileListener.php#L159
lib/Hooks/FileListener.php:159:60: InvalidPropertyAssignmentValue: $this->movingDirFromIgnoredTerritory with declared type 'array<array-key, mixed>|null' cannot be assigned type 'bool' (see https://psalm.dev/145)
|
RiskyTruthyFalsyComparison:
lib/Hooks/FileListener.php#L200
lib/Hooks/FileListener.php:200:26: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
InvalidArgument:
lib/Hooks/FileListener.php#L203
lib/Hooks/FileListener.php:203:45: InvalidArgument: Argument 1 of array_diff expects array<array-key, mixed>, but bool provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/Hooks/FileListener.php#L204
lib/Hooks/FileListener.php:204:58: InvalidArgument: Argument 2 of array_diff expects array<array-key, mixed>, but bool provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/Hooks/FileListener.php#L217
lib/Hooks/FileListener.php:217:70: InvalidArgument: Argument 3 of OCA\Recognize\Hooks\FileListener::postDelete expects array<array-key, mixed>|null, but true provided (see https://psalm.dev/004)
|
MismatchingDocblockReturnType:
lib/Hooks/FileListener.php#L480
lib/Hooks/FileListener.php:480:16: MismatchingDocblockReturnType: Docblock has incorrect return type 'bool', should be 'array<array-key, mixed>' (see https://psalm.dev/142)
|
MixedInferredReturnType:
lib/Hooks/FileListener.php#L480
lib/Hooks/FileListener.php:480:16: MixedInferredReturnType: Could not verify return type 'bool' for OCA\Recognize\Hooks\FileListener::getDirIgnores (see https://psalm.dev/047)
|
PossiblyInvalidArgument:
lib/Service/Logger.php#L36
lib/Service/Logger.php:36:30: PossiblyInvalidArgument: Argument 1 of Symfony\Component\Console\Output\OutputInterface::writeln expects iterable<mixed, mixed>|string, but possibly different type Stringable|string provided (see https://psalm.dev/092)
|
PossiblyInvalidArgument:
lib/Service/Logger.php#L46
lib/Service/Logger.php:46:30: PossiblyInvalidArgument: Argument 1 of Symfony\Component\Console\Output\OutputInterface::writeln expects iterable<mixed, mixed>|string, but possibly different type Stringable|string provided (see https://psalm.dev/092)
|
PossiblyInvalidArgument:
lib/Service/Logger.php#L56
lib/Service/Logger.php:56:30: PossiblyInvalidArgument: Argument 1 of Symfony\Component\Console\Output\OutputInterface::writeln expects iterable<mixed, mixed>|string, but possibly different type Stringable|string provided (see https://psalm.dev/092)
|
static-psalm-analysis-summary
Process completed with exit code 1.
|