Set minimum version to PHP 7.3

This commit is contained in:
itismadness
2023-12-25 19:08:54 +00:00
parent 10f8f2aaac
commit ecbcda3fb5
4 changed files with 844 additions and 699 deletions

View File

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.2', '7.4']
php-version: ['7.3', '7.4', '8.0', '8.1']
steps:
- uses: actions/checkout@v2

View File

@@ -16,7 +16,7 @@
}
},
"require": {
"php": ">=7.2",
"php": ">=7.3",
"ext-mbstring": "*",
"symfony/console": "^3.4 | ^4.0 | ^5.0",
"symfony/yaml": "^3.4 | ^4.0 | ^5.0",
@@ -25,12 +25,12 @@
"bin": ["bin/logchecker"],
"require-dev": {
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^8.5",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.5",
"brainmaestro/composer-git-hooks": "^2.8"
},
"scripts": {
"test": "phpunit -v",
"test": "phpunit",
"lint": "phpcs",
"lint:fix": "phpcbf",
"static-analysis": "phpstan analyze src/"
@@ -42,5 +42,10 @@
"composer run static-analysis"
]
}
},
"config": {
"platform": {
"php": "7.3"
}
}
}

1487
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +1,25 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
<exclude></exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="report" />
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
</logging>
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
verbose="true"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<exclude/>
<report>
<html outputDirectory="report"/>
<text outputFile="php://stdout" showUncoveredFiles="false"/>
</report>
</coverage>
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>