diff options
author | Mario <mario@mariovavti.com> | 2024-11-03 11:01:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-03 11:01:50 +0000 |
commit | a385fdff37a47be018061c3a5bef77f8053a80a2 (patch) | |
tree | cdaa52dc42807116244d35960799ee76fbcdc924 | |
parent | 20aacb82c6a1d59d85e5d092bd269b4b11dc1684 (diff) | |
download | volse-hubzilla-a385fdff37a47be018061c3a5bef77f8053a80a2.tar.gz volse-hubzilla-a385fdff37a47be018061c3a5bef77f8053a80a2.tar.bz2 volse-hubzilla-a385fdff37a47be018061c3a5bef77f8053a80a2.zip |
Zotlabs\Web\HttpMeta: Declare and init properties.
The $ogproperty was not declared, which triggered a warning in PHP 8.2.
Also fixed the initialization of the properties, and removed the now
superfluous constructor.
(cherry picked from commit bf008465ad36797f2349ad2bcea00bdd84f4fcfb)
Co-authored-by: Harald Eilertsen <haraldei@anduin.net>
-rw-r--r-- | Zotlabs/Web/HttpMeta.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Zotlabs/Web/HttpMeta.php b/Zotlabs/Web/HttpMeta.php index 7cf93dda9..d12037a51 100644 --- a/Zotlabs/Web/HttpMeta.php +++ b/Zotlabs/Web/HttpMeta.php @@ -5,16 +5,9 @@ namespace Zotlabs\Web; class HttpMeta { - private $vars = null; - private $og = null; - - function __construct() { - - $this->vars = []; - $this->og = []; - $this->ogproperties = []; - - } + private $vars = []; + private $og = []; + private $ogproperties = []; //Set Meta Value // Mode: |