Skip to content

Commit 8847d9b

Browse files
authored
Merge pull request #33 from wmde/php8
Bump PHP requirement to 8.1
2 parents 7272020 + fc20edb commit 8847d9b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
- php: '7.4'
17-
- php: '8.0'
1816
- php: '8.1'
1917
- php: '8.2'
2018
- php: '8.3'
19+
- php: '8.4'
2120

2221
runs-on: ubuntu-latest
2322

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"require": {
1212
"ext-dom": "*",
1313
"ext-libxml": "*",
14-
"php": ">=7.2"
14+
"php": ">=8.1"
1515
},
1616
"autoload": {
1717
"psr-4": {

src/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function stripEventHandlers( DOMNode $node ) {
7676
}
7777
/** @var DOMAttr $attribute */
7878
foreach ( $node->attributes as $attribute ) {
79-
if ( strpos( $attribute->name, 'v-on:' ) === 0 ) {
79+
if ( str_starts_with( $attribute->name, 'v-on:' ) ) {
8080
$node->removeAttribute( $attribute->name );
8181
}
8282
}

src/HtmlParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function parseHtml( string $html ): DOMDocument {
4343

4444
$exception = null;
4545
foreach ( $errors as $error ) {
46-
if ( strpos( $error->message, 'Tag template invalid' ) === 0 ) {
46+
if ( str_starts_with( $error->message, 'Tag template invalid' ) ) {
4747
continue;
4848
}
4949
$exception = new Exception( $error->message, $error->code, $exception );

0 commit comments

Comments
 (0)