From a58bff805d7e3d340e2ac3d131f8eac97a5b9f16 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 25 Jun 2021 21:38:20 +0100 Subject: [PATCH] phpdoc --- include/Form/User.php | 4 ++++ include/UserAdmin.php | 1 + 2 files changed, 5 insertions(+) diff --git a/include/Form/User.php b/include/Form/User.php index 3c1e09f..66173b8 100644 --- a/include/Form/User.php +++ b/include/Form/User.php @@ -9,6 +9,10 @@ class User implements Form { */ protected $form; + /** + * @param array $data + * @param bool $is_new + */ public function __construct(array $data = [], $is_new = false) { $this->form = new \Zend_Form(); diff --git a/include/UserAdmin.php b/include/UserAdmin.php index a732c5f..a3999f4 100644 --- a/include/UserAdmin.php +++ b/include/UserAdmin.php @@ -58,6 +58,7 @@ private function mkpass(string $passwd) : string } elseif ($mode == "sha1") { $ret = sha1($passwd); } elseif ($mode == "argon2i") { + /** * @psalm-suppress InvalidScalarArgument */