Add trailing commas #198
Annotations
10 errors and 15 warnings
src/Controller/MonitorController.php#L156
src/Controller/MonitorController.php:156:16: UndefinedMethod: Method Symfony\Component\HttpFoundation\JsonResponse::create does not exist (see https://psalm.dev/022)
|
src/State.php#L9
src/State.php:9:18: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\State::OK" should have a declared type. (see https://psalm.dev/359)
|
src/State.php#L10
src/State.php:10:18: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\State::WARNING" should have a declared type. (see https://psalm.dev/359)
|
src/State.php#L11
src/State.php:11:18: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\State::NOSTATE" should have a declared type. (see https://psalm.dev/359)
|
src/State.php#L12
src/State.php:12:18: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\State::ERROR" should have a declared type. (see https://psalm.dev/359)
|
src/State.php#L13
src/State.php:13:18: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\State::FATAL" should have a declared type. (see https://psalm.dev/359)
|
src/State.php#L14
src/State.php:14:18: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\State::SKIPPED" should have a declared type. (see https://psalm.dev/359)
|
src/TestCase/AuthSource/Ldap/Bind.php#L37
src/TestCase/AuthSource/Ldap/Bind.php:37:44: PossiblyNullReference: Cannot call method getString on possibly null value (see https://psalm.dev/083)
|
src/TestCase/AuthSource/Ldap/Bind.php#L38
src/TestCase/AuthSource/Ldap/Bind.php:38:44: PossiblyNullReference: Cannot call method getString on possibly null value (see https://psalm.dev/083)
|
src/TestCase/AuthSource/Ldap/Configuration.php#L20
src/TestCase/AuthSource/Ldap/Configuration.php:20:5: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\Module\ConnectorInterface does not exist (see https://psalm.dev/200)
|
hooks/hook_frontpage.php#L18
hooks/hook_frontpage.php:18:5: MixedArrayAssignment: Cannot access array value on mixed variable $links['config'] (see https://psalm.dev/117)
|
src/Controller/MonitorController.php#L56
src/Controller/MonitorController.php:56:19: PropertyNotSetInConstructor: Property SimpleSAML\Module\monitor\Controller\MonitorController::$state is not defined in constructor of SimpleSAML\Module\monitor\Controller\MonitorController or in any methods called in the constructor (see https://psalm.dev/074)
|
src/Controller/MonitorController.php#L152
src/Controller/MonitorController.php:152:16: MixedInferredReturnType: Could not verify return type 'Symfony\Component\HttpFoundation\JsonResponse' for SimpleSAML\Module\monitor\Controller\MonitorController::processJson (see https://psalm.dev/047)
|
src/Controller/MonitorController.php#L156
src/Controller/MonitorController.php:156:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
src/Controller/MonitorController.php#L157
src/Controller/MonitorController.php:157:27: MixedArrayAccess: Cannot access array value on mixed variable $this->healthInfo[$this->state] (see https://psalm.dev/051)
|
src/Monitor.php#L72
src/Monitor.php:72:16: MixedInferredReturnType: Could not verify return type 'int' for SimpleSAML\Module\monitor\Monitor::getState (see https://psalm.dev/047)
|
src/Monitor.php#L77
src/Monitor.php:77:16: MixedReturnStatement: Possibly-mixed return value (see https://psalm.dev/138)
|
src/Monitor.php#L77
src/Monitor.php:77:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
src/TestCase/AuthSource/Ldap/Bind.php#L34
src/TestCase/AuthSource/Ldap/Bind.php:34:9: MixedAssignment: Unable to determine the type that $this->connection is being assigned to (see https://psalm.dev/032)
|
src/TestCase/AuthSource/Ldap/Bind.php#L35
src/TestCase/AuthSource/Ldap/Bind.php:35:9: MixedAssignment: Unable to determine the type that $authSourceData is being assigned to (see https://psalm.dev/032)
|
tests/src/MonitorTest.php#L17
tests/src/MonitorTest.php:17:19: MissingClassConstType: Class constant "SimpleSAML\Module\monitor\Test\MonitorTest::FRAMEWORK" should have a declared type. (see https://psalm.dev/359)
|
tests/src/TestCase/AuthSource/NegotiateTest.php#L52
tests/src/TestCase/AuthSource/NegotiateTest.php:52:96: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
|
tests/src/TestCase/AuthSource/NegotiateTest.php#L54
tests/src/TestCase/AuthSource/NegotiateTest.php:54:20: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
|
tests/src/TestCase/AuthSource/NegotiateTest.php#L70
tests/src/TestCase/AuthSource/NegotiateTest.php:70:96: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
|
tests/src/TestCase/AuthSource/NegotiateTest.php#L85
tests/src/TestCase/AuthSource/NegotiateTest.php:85:96: DeprecatedMethod: The method PHPUnit\Framework\TestCase::returnValue has been marked as deprecated (see https://psalm.dev/001)
|
This job succeeded
Loading