Ignore phpstan error for magic setter in LightOpenID class

This commit is contained in:
Art4 2024-12-04 21:53:15 +00:00
parent 7b892fac9c
commit 650e65d4b4

View file

@ -1214,7 +1214,7 @@ class User
$_SESSION['openid'] = $openid_url;
$openid = new LightOpenID(DI::baseUrl()->getHost());
// $openid->identity is private and cannot be set
/** @phpstan-ignore-next-line $openid->identity is private, but will be set via magic setter */
$openid->identity = $openid_url;
$openid->returnUrl = DI::baseUrl() . '/openid';
$openid->required = ['namePerson/friendly', 'contact/email', 'namePerson'];