monero-integrations / monerophp

Monero PHP library + JsonRPC Client
MIT License
116 stars 76 forks source link

Fix dynamic property deprecation warnings #148

Closed itismadness closed 8 months ago

itismadness commented 8 months ago

Fixes deprecation warnings around dynamic properties shown when running this library under PHP 8.2.

Essentially, this is deprecated:

class User {
    public function __construct() {
        $this->name = 'test';
    }
}

where name must be declared as a class property:

class User {
    private $name;
    public function __construct() {
        $this->name = 'test';
    }
}
serhack commented 8 months ago

Thank you very much!