Skip to content

Commit 83359df

Browse files
authored
Merge pull request #97 from Slamdunk/php_84
Add PHP 8.4 support, drop PHP 8.1
2 parents 9d0a1eb + 2df0615 commit 83359df

File tree

4 files changed

+279
-260
lines changed

4 files changed

+279
-260
lines changed

.github/workflows/phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- "highest"
1818
- "locked"
1919
php-version:
20-
- "8.1"
2120
- "8.2"
2221
- "8.3"
22+
- "8.4"
2323
operating-system:
2424
- "ubuntu-latest"
2525

@@ -36,7 +36,7 @@ jobs:
3636
tools: composer:v2, cs2pr
3737

3838
- name: "Cache dependencies"
39-
uses: "actions/cache@v3"
39+
uses: "actions/cache@v4"
4040
with:
4141
path: |
4242
~/.composer/cache

classes/PHPTAL/Dom/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function generateHead(PHPTAL_Php_CodeWriter $codewriter)
353353
}
354354
}
355355

356-
public function generateContent(PHPTAL_Php_CodeWriter $codewriter = null, $realContent=false)
356+
public function generateContent(?PHPTAL_Php_CodeWriter $codewriter = null, $realContent=false)
357357
{
358358
if (!$this->isEmptyNode($codewriter->getOutputMode())) {
359359
if ($realContent || !count($this->contentAttributes)) {

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
],
2323
"homepage": "https://phptal.org/",
2424
"require": {
25-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0"
25+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^10.4.1"
28+
"phpunit/phpunit": "^11.3.6"
2929
},
3030
"autoload": {
3131
"psr-0": {

0 commit comments

Comments
 (0)