[php] Avoid creating dynamic properties in testsuite
This gives a deprecation warning with PHP 8.2.
This commit is contained in:
parent
e789c9e799
commit
91887a10cd
3 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ check::classes(array('A','Foo','Bar'));
|
|||
check::globals(array());
|
||||
|
||||
class MyBar extends Bar {
|
||||
public $val;
|
||||
|
||||
function __construct($val = 2) {
|
||||
parent::__construct();
|
||||
$this->val = $val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue