Skip to content

Commit 481e4aa

Browse files
committed
PHP 8.2: fix dynamic property
Looks like the `Parser::$stringDateTimes` property was removed in commit 7895e56, which was part of the `0.2.0` release, so setting this non-declared property from the tests has no function. Removing the property setting fixes the PHP 8.2 "Creation of dynamic property Mf2\Parser::$stringDateTimes is deprecated" deprecation notices.
1 parent e35bb9f commit 481e4aa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/Mf2/CombinedMicroformatsTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public function testHEventLocationHCard() {
6666
}';
6767

6868
$parser = new Parser($input, '', true);
69-
$parser->stringDateTimes = true;
7069
$output = $parser->parse();
7170

7271
$this->assertJsonStringEqualsJsonString(json_encode($output), $expected);
@@ -96,7 +95,6 @@ public function testHCardOrgPOrg() {
9695
}';
9796

9897
$parser = new Parser($input, '', true);
99-
$parser->stringDateTimes = true;
10098
$output = $parser->parse();
10199

102100
$this->assertJsonStringEqualsJsonString(json_encode($output), $expected);
@@ -135,7 +133,6 @@ public function testHCardOrgHCard() {
135133
}';
136134

137135
$parser = new Parser($input, '', true);
138-
$parser->stringDateTimes = true;
139136
$output = $parser->parse();
140137

141138
$this->assertJsonStringEqualsJsonString(json_encode($output), $expected);

0 commit comments

Comments
 (0)