From ec28e10c0909cff4b7363d176e534458a87500fb Mon Sep 17 00:00:00 2001 From: karakal Date: Wed, 8 Apr 2020 21:37:34 +0200 Subject: [PATCH] First steps for compatibility with atk4/data:2.0.3 In atk4/data:2.0.3 type hints where introduced in the functions in Field. This type hints need to be introduced in all the dependend modules. Just to get my application working again I introduced this change into the Password.php --- src/Field/Password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Field/Password.php b/src/Field/Password.php index d11f59fc..a83d3363 100644 --- a/src/Field/Password.php +++ b/src/Field/Password.php @@ -148,7 +148,7 @@ public function decrypt($password, $f, $p) * * @return bool true if passwords match */ - public function compare($password) + public function compare($password): bool { if (is_null($this->password_hash)) {