nextcloud / suspicious_login

Detect and warn about suspicious IPs logging into Nextcloud
GNU Affero General Public License v3.0
84 stars 25 forks source link

chore: Add psalm for code analysis #911

Closed susnux closed 2 weeks ago

susnux commented 1 month ago

Fixes https://github.com/nextcloud/suspicious_login/issues/705

Fix all detected problem. There should be no¹ change in logic or behavior.

¹ Well one exception: If a suspicious login could not be persisted the code threw at some random place, so instead we handle this by notify the user and log that as critical severity.

susnux commented 1 month ago

php8.0 lint Expected — Waiting for status to be reported

This needs to be removed from the expected checks - it does not exist as we can only check 8.1+ Alternatively merge this here first: https://github.com/nextcloud/suspicious_login/pull/914