Skip to content

Commit 72c4f38

Browse files
committed
Reduce to PHP 8 as minimum version to match twig
1 parent ddc1c2a commit 72c4f38

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
}
1818
],
1919
"require": {
20-
"php": ">=8.2",
20+
"php": ">=8.0.2",
2121
"twig/twig": "^3.15"
2222
},
2323
"require-dev": {
2424
"captainhook/captainhook-phar": "^5.0",
2525
"captainhook/hook-installer": "^1.0",
26-
"phpunit/phpunit": "^10.0",
27-
"symfony/finder": "^7.0",
28-
"symfony/process": "^7.0"
26+
"phpunit/phpunit": "^9.0",
27+
"symfony/finder": "^6.0|^7.0",
28+
"symfony/process": "^6.0|^7.0"
2929
},
3030
"config": {
3131
"sort-packages": false,

docker/compose/composer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
composer:
3-
image: thecodingmachine/php:8.2-v4-cli
3+
image: thecodingmachine/php:8.0-v4-cli
44
container_name: squirrel_composer
55
working_dir: /usr/src/app
66
command: [ "composer", "${COMPOSER_COMMAND}", "--ansi" ]

src/TokenParser/BreakNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class BreakNode extends Node
1111
{
1212
public function __construct(
13-
private readonly int $loopNumber,
13+
private int $loopNumber,
1414
int $lineno,
1515
) {
1616
parent::__construct([], [], $lineno);

src/TokenParser/ContinueNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class ContinueNode extends Node
1111
{
1212
public function __construct(
13-
private readonly int $loopNumber,
13+
private int $loopNumber,
1414
int $lineno,
1515
) {
1616
parent::__construct([], [], $lineno);

tools/phpunit.xml.dist

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="../vendor/autoload.php" cacheDirectory="cache/.phpunit.cache" displayDetailsOnIncompleteTests="true" displayDetailsOnSkippedTests="true" displayDetailsOnTestsThatTriggerDeprecations="true" displayDetailsOnPhpunitDeprecations="true" displayDetailsOnTestsThatTriggerNotices="true" displayDetailsOnTestsThatTriggerErrors="true" displayDetailsOnTestsThatTriggerWarnings="true">
3-
<coverage includeUncoveredFiles="true"/>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="../vendor/autoload.php" cacheResultFile="cache/.phpunit.result.cache">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">../src</directory>
6+
</include>
7+
</coverage>
48
<testsuites>
5-
<testsuite name="unit">
9+
<testsuite name="Unit Tests">
610
<directory>../tests</directory>
711
</testsuite>
812
</testsuites>
9-
<source>
10-
<include>
11-
<directory>../src</directory>
12-
</include>
13-
</source>
1413
</phpunit>

0 commit comments

Comments
 (0)