]> git.mxchange.org Git - friendica.git/commitdiff
Ignore phpstan error for magic setter in LightOpenID class
authorArt4 <art4@wlabs.de>
Wed, 4 Dec 2024 21:53:15 +0000 (21:53 +0000)
committerArt4 <art4@wlabs.de>
Wed, 4 Dec 2024 21:53:15 +0000 (21:53 +0000)
src/Model/User.php

index 95562aa16b36fcc1a804ff2930cbf1480ef03386..3d107ca79cbb78592e99895b2c1ea0c625e7ea26 100644 (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'];