Skip to content

Commit 1c52157

Browse files
authored
Merge pull request #54 from aaemnnosttv/release/1.3.1
Fix dynamic property deprecation notices
2 parents 4020ea7 + d8bc9b3 commit 1c52157

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/db.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Author: Evan Mattson
66
* Author URI: https://aaemnnost.tv
77
* Plugin URI: https://github.com/aaemnnosttv/wp-sqlite-db
8-
* Version: 1.2.0
8+
* Version: 1.3.1
99
* Requires PHP: 5.6
1010
*
1111
* This file must be placed in wp-content/db.php.
@@ -2474,6 +2474,7 @@ public function rollBack()
24742474
*
24752475
* @author kjm
24762476
*/
2477+
#[\AllowDynamicProperties]
24772478
class ObjectArray
24782479
{
24792480
function __construct($data = null, &$node = null)
@@ -2483,7 +2484,7 @@ function __construct($data = null, &$node = null)
24832484
if (! $node) {
24842485
$node =& $this;
24852486
}
2486-
$node->$key = new stdClass();
2487+
$node->$key = new \stdClass();
24872488
self::__construct($value, $node->$key);
24882489
} else {
24892490
if (! $node) {

0 commit comments

Comments
 (0)