Skip to content

Commit

Permalink
Reduce to PHP 8 as minimum version to match twig
Browse files Browse the repository at this point in the history
  • Loading branch information
iquito committed Nov 20, 2024
1 parent ddc1c2a commit 72c4f38
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
}
],
"require": {
"php": ">=8.2",
"php": ">=8.0.2",
"twig/twig": "^3.15"
},
"require-dev": {
"captainhook/captainhook-phar": "^5.0",
"captainhook/hook-installer": "^1.0",
"phpunit/phpunit": "^10.0",
"symfony/finder": "^7.0",
"symfony/process": "^7.0"
"phpunit/phpunit": "^9.0",
"symfony/finder": "^6.0|^7.0",
"symfony/process": "^6.0|^7.0"
},
"config": {
"sort-packages": false,
Expand Down
2 changes: 1 addition & 1 deletion docker/compose/composer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
composer:
image: thecodingmachine/php:8.2-v4-cli
image: thecodingmachine/php:8.0-v4-cli
container_name: squirrel_composer
working_dir: /usr/src/app
command: [ "composer", "${COMPOSER_COMMAND}", "--ansi" ]
Expand Down
2 changes: 1 addition & 1 deletion src/TokenParser/BreakNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class BreakNode extends Node
{
public function __construct(
private readonly int $loopNumber,
private int $loopNumber,
int $lineno,
) {
parent::__construct([], [], $lineno);
Expand Down
2 changes: 1 addition & 1 deletion src/TokenParser/ContinueNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ContinueNode extends Node
{
public function __construct(
private readonly int $loopNumber,
private int $loopNumber,
int $lineno,
) {
parent::__construct([], [], $lineno);
Expand Down
15 changes: 7 additions & 8 deletions tools/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<coverage includeUncoveredFiles="true"/>
<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">
<coverage>
<include>
<directory suffix=".php">../src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="unit">
<testsuite name="Unit Tests">
<directory>../tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>../src</directory>
</include>
</source>
</phpunit>

0 comments on commit 72c4f38

Please sign in to comment.