From add3c6b75b8126efd2b93c356d1856220f057e16 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 6 May 2024 07:03:51 +0000 Subject: [PATCH] fix depractation notice --- src/Appwrite/Auth/Hash/Phpass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/Hash/Phpass.php b/src/Appwrite/Auth/Hash/Phpass.php index 187e4a27a6..988c38cc8d 100644 --- a/src/Appwrite/Auth/Hash/Phpass.php +++ b/src/Appwrite/Auth/Hash/Phpass.php @@ -263,7 +263,7 @@ class Phpass extends Hash */ $itoa64 = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $output = '$2a$'; - $output .= chr(ord('0') + $options['iteration_count_log2'] / 10); + $output .= chr(ord('0') + intval($options['iteration_count_log2'] / 10)); $output .= chr(ord('0') + $options['iteration_count_log2'] % 10); $output .= '$'; $i = 0;