diff --git a/ChangeLog.md b/ChangeLog.md index 15151cd..8cc1b03 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -3,6 +3,10 @@ JSON for the XP Framework ChangeLog ## ?.?.? / ????-??-?? +## 5.0.2 / 2022-02-26 + +* Fixed "Creation of dynamic property" warnings in PHP 8.2 - @thekid + ## 5.0.1 / 2021-10-21 * Fixed PHP 7.0 and 7.1 compatibility: *Call to undefined function diff --git a/src/main/php/text/json/Format.class.php b/src/main/php/text/json/Format.class.php index fcad7e3..2177d99 100755 --- a/src/main/php/text/json/Format.class.php +++ b/src/main/php/text/json/Format.class.php @@ -13,8 +13,7 @@ abstract class Format implements Value { const ESCAPE_ENTITIES = 11; // JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_QUOT public static $DEFAULT; - public $comma; - public $colon; + public $comma, $colon, $options; static function __static() { self::$DEFAULT= new DenseFormat(); diff --git a/src/main/php/text/json/MultiByteSource.class.php b/src/main/php/text/json/MultiByteSource.class.php index 03bf5b4..ac2bfbd 100755 --- a/src/main/php/text/json/MultiByteSource.class.php +++ b/src/main/php/text/json/MultiByteSource.class.php @@ -4,7 +4,7 @@ use io\streams\{InputStream, Seekable, Streams}; class MultiByteSource implements InputStream, Seekable { - protected $in= null; + protected $in, $encoding; /** * Constructor. Creates a new MultiByteSource on an underlying input