Skip to content

Commit

Permalink
Fix "Creation of dynamic property" warnings in PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Feb 26, 2022
1 parent 18c9d3c commit c867c03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/main/php/text/json/Format.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/text/json/MultiByteSource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c867c03

Please sign in to comment.