Skip to content

Fix mocking anonymous classes #457

Fix mocking anonymous classes

Fix mocking anonymous classes #457

Triggered via pull request April 26, 2024 14:17
Status Success
Total duration 59s
Artifacts

psalm.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
PossiblyNullPropertyAssignmentValue: library/Mockery.php#L54
library/Mockery.php:54:33: PossiblyNullPropertyAssignmentValue: $this->_config with non-nullable declared type 'Mockery\Configuration' cannot be assigned nullable type 'null' (see https://psalm.dev/148)
PossiblyUnusedMethod: library/Mockery.php#L83
library/Mockery.php:83:28: PossiblyUnusedMethod: Cannot find any calls to method Mockery::andAnyOtherArgs (see https://psalm.dev/087)
PossiblyUnusedMethod: library/Mockery.php#L96
library/Mockery.php:96:28: PossiblyUnusedMethod: Cannot find any calls to method Mockery::andAnyOthers (see https://psalm.dev/087)
PossiblyUnusedMethod: library/Mockery.php#L106
library/Mockery.php:106:28: PossiblyUnusedMethod: Cannot find any calls to method Mockery::any (see https://psalm.dev/087)
PossiblyUnusedMethod: library/Mockery.php#L120
library/Mockery.php:120:28: PossiblyUnusedMethod: Cannot find any calls to method Mockery::anyOf (see https://psalm.dev/087)
PossiblyUnusedMethod: library/Mockery.php#L144
library/Mockery.php:144:28: PossiblyUnusedMethod: Cannot find any calls to method Mockery::capture (see https://psalm.dev/087)
MissingClosureReturnType: library/Mockery.php#L146
library/Mockery.php:146:20: MissingClosureReturnType: Closure does not have a return type, expecting true (see https://psalm.dev/068)
MissingClosureParamType: library/Mockery.php#L146
library/Mockery.php:146:37: MissingClosureParamType: Parameter $argument has no provided type (see https://psalm.dev/153)
MixedAssignment: library/Mockery.php#L147
library/Mockery.php:147:13: MixedAssignment: Unable to determine the type that $reference is being assigned to (see https://psalm.dev/032)
MissingThrowsDocblock: library/Mockery.php#L176
library/Mockery.php:176:21: MissingThrowsDocblock: Exception is thrown but not caught - please either catch or add a @throws annotation (see https://psalm.dev/169)