Skip to content

Commit cfded95

Browse files
committed
Add PHP 8.5 support.
1 parent 2ccca80 commit cfded95

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "8.0.*|8.1.*|8.2.*|8.3.*|8.4.*",
18+
"php": "8.0.*|8.1.*|8.2.*|8.3.*|8.4.*|8.5.*",
1919
"ivopetkov/html5-dom-document-php": "^2.5"
2020
},
2121
"require-dev": {

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<directory>./tests/</directory>
55
</testsuite>
66
</testsuites>
7-
<coverage>
7+
<source>
88
<include>
99
<directory>./src/</directory>
1010
</include>
11-
</coverage>
11+
</source>
1212
</phpunit>

src/HTMLServerComponentsCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function makeComponent(array $attributes = [], string $innerHTML = '', st
208208
if (self::$newComponentCache === null) {
209209
self::$newComponentCache = new \IvoPetkov\HTMLServerComponent();
210210
}
211-
$component = clone (self::$newComponentCache);
211+
$component = clone(self::$newComponentCache);
212212
$component->setAttributes($attributes);
213213
$component->innerHTML = $innerHTML;
214214
$component->tagName = $tagName;

0 commit comments

Comments
 (0)