From e71b60d48e2f5b420ca9d8c9e7cd53608daa1e84 Mon Sep 17 00:00:00 2001 From: Sanic Date: Thu, 22 Dec 2022 10:34:40 +0100 Subject: [PATCH] Fixing deprecation message in php 8.2 (context: https://php.watch/versions/8.2/dynamic-properties-deprecated) --- bibtexbrowser.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index fd780c5..9a8cbe5 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -777,9 +777,9 @@ class XMLPrettyPrinter extends ParserDelegate { /** represents @string{k=v} */ class StringEntry { - private string $name; - private string $value; - private string $filename; + public $filename; + public $name; + public $value; function __construct($k, $v, $filename) { $this->name=$k; @@ -3372,6 +3372,9 @@ usage: */ class AcademicDisplay { + public $db; + public $entries; + public $title; function getTitle() { return $this->title; } function setTitle($title) { $this->title = $title; return $this; }