#author("2022-12-24T11:34:15+09:00","default:user","user") #author("2022-12-24T11:34:53+09:00","default:user","user") * auth.php: PHPDocの記述が変 [#vf7e6b37] - ページ: [[BugTrack]] - 投稿者: [[ぬぺぺ]] - 優先順位: 低 - 状態: 提案 - カテゴリー: 本体バグ - 投稿日: 2022-12-24 (土) 11:33:16 - バージョン: 1.5.4 ** メッセージ [#ob5ea1eb] 全然バグではないんですが、PHPDocの型が「type」と書かれているせいでVSCodeが怒ってきます。 確かに正しくない記述ではあるので、次回のアップデートにでも適当に修正いただけたら嬉しいです ***該当部分のコード [#q28b0d2c] auth.php /** * Search user and get 'dn', 'uid', 'fullname' and 'mail' * @param type $ldapconn * @param type $username * @param type $base_dn * @return boolean */ function get_ldap_user_info($ldapconn, $username, $base_dn) { : return false; } ***修正案 [#x46973cc] /** * Search user and get 'dn', 'uid', 'fullname' and 'mail' * @param $ldapconn * @param $username * @param $base_dn * @return boolean */ function get_ldap_user_info($ldapconn, $username, $base_dn) { : return false; } もしくは /** * Search user and get 'dn', 'uid', 'fullname' and 'mail' * @param Resource|LDAP\Connection $ldapconn * @param string $username * @param string $base_dn * @return boolean */ function get_ldap_user_info($ldapconn, $username, $base_dn) { : return false; } ***もう1ヶ所 [#nf32214f] こちらはPHPDocがおかしいという訳ではなくて、PHP8.1からldap_connectが返す内容が変わったとのことです。 https://www.php.net/manual/ja/function.ldap-connect.php auth.php /** * Get LDAP groups user belongs to * * @param Resource $ldapconn * @param String $user * @param bool $is_ad * @return Array */ function get_ldap_groups_with_user($ldapconn, $user, $is_ad) { : } ***修正案 [#q32b6533] こちらはPHPDocがおかしいという訳ではなくて、PHP8.1からldap_connectが返す内容が変わったとのことです。 https://www.php.net/manual/ja/function.ldap-connect.php /** * Get LDAP groups user belongs to * * @param Resource|LDAP\Connection $ldapconn * @param String $user * @param bool $is_ad * @return Array */ function get_ldap_groups_with_user($ldapconn, $user, $is_ad) { : } -------- #comment