Skip to content

Commit f320a95

Browse files
committed
Fix dynamic property deprecation in TraverserTest
Declare $html5 explicitly to avoid PHP 8.2+ deprecation warning about creation of dynamic class properties.
1 parent a2633d9 commit f320a95

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/HTML5/Serializer/TraverserTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
99
{
10+
/**
11+
* @var \Masterminds\HTML5
12+
*/
13+
protected $html5;
14+
1015
protected $markup = '<!doctype html>
1116
<html lang="en">
1217
<head>

0 commit comments

Comments
 (0)