Skip to content

Commit 7b4bb9f

Browse files
committed
Update dependencies and supported PHP versions.
1 parent b648127 commit 7b4bb9f

File tree

6 files changed

+27
-64
lines changed

6 files changed

+27
-64
lines changed

.github/workflows/PHPStan.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/unit.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php-version:
19-
- "8.1"
20-
- "8.2"
2119
- "8.3"
20+
- "8.4"
2221

2322
steps:
2423
- name: "Checkout"
@@ -27,11 +26,11 @@ jobs:
2726
- name: "Install PHP with extensions"
2827
uses: "shivammathur/setup-php@v2"
2928
with:
30-
php-version: "${{ matrix.php-version }}"
31-
php_extensions: "xdebug"
29+
php-version: "${{ matrix.php-version }}"
30+
extensions: "xdebug"
3231

3332
- name: "Cache dependencies installed with Composer"
34-
uses: "actions/cache@v2"
33+
uses: "actions/cache@v4"
3534
with:
3635
path: "~/.composer/cache"
3736
key: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"

.gitignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
/.idea/
22
/.phpunit.result.cache
3-
/bin/jp.php
4-
/bin/pdepend
53
/bin/phing
64
/bin/php-parse
7-
/bin/phpcpd
8-
/bin/phploc
9-
/bin/phpmd
10-
/bin/phpstan
11-
/bin/phpstan.phar
125
/bin/phpunit
136
/bin/yaml-lint
147
/composer.lock
15-
/custom.task.properties
16-
/custom.type.properties
178
/docs/_build/
189
/test/coverage.xml
1910
/test/report/

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ The frontend of PhpStratum.
99
<th>Legal</th>
1010
<th>Release</th>
1111
<th>Tests</th>
12-
<th>Code</th>
1312
</tr>
1413
</thead>
1514
<tbody>
@@ -27,9 +26,6 @@ The frontend of PhpStratum.
2726
<a href="https://github.com/DatabaseStratum/php-stratum-cli/actions/workflows/unit.yml"><img src="https://github.com/DatabaseStratum/php-stratum-cli/actions/workflows/unit.yml/badge.svg" alt="Build Status"/></a><br/>
2827
<a href="https://codecov.io/gh/DatabaseStratum/php-stratum-cli"><img src="https://codecov.io/gh/DatabaseStratum/php-stratum-cli/branch/master/graph/badge.svg" alt="Code Coverage"/></a>
2928
</td>
30-
<td>
31-
<a href="https://scrutinizer-ci.com/g/DatabaseStratum/php-stratum-cli/"><img src="https://scrutinizer-ci.com/g/DatabaseStratum/php-stratum-cli/badges/quality-score.png?b=master" alt="Scrutinizer Code Quality"/></a>
32-
</td>
3329
</tr>
3430
</tbody>
3531
</table>

composer.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,17 @@
1111
],
1212
"license": "MIT",
1313
"require": {
14-
"php": ">=8.1",
15-
"hassankhan/config": "^3.1.0",
14+
"php": ">=8.3",
15+
"hassankhan/config": "^3.2.0",
1616
"setbased/error-handler": "^1.3.0",
17-
"setbased/helper-cast": "^3.0.0",
18-
"setbased/php-stratum-backend": "^6.0.0",
19-
"symfony/console": "^6.2.5"
17+
"setbased/helper-cast": "^3.0.1",
18+
"setbased/php-stratum-backend": "^6.2.0",
19+
"symfony/console": "^6.4.0|^7.3.0"
2020
},
21-
"minimum-stability": "dev",
22-
"prefer-stable": true,
2321
"require-dev": {
24-
"phing/phing": "^3.0.0-RC4",
25-
"phpstan/phpstan": "^1.9.14",
26-
"phpunit/phpunit": "^9.5.28",
27-
"setbased/phing-extensions": "^3.1.0"
22+
"phing/phing": "^3.0.1",
23+
"phpunit/phpunit": "^11.5.22",
24+
"setbased/phing-extensions": "^3.2.0"
2825
},
2926
"autoload": {
3027
"psr-4": {

phpunit.xml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
<phpunit bootstrap="test/bootstrap.php">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
displayDetailsOnTestsThatTriggerDeprecations="true"
5+
displayDetailsOnTestsThatTriggerErrors="true"
6+
displayDetailsOnTestsThatTriggerNotices="true"
7+
displayDetailsOnTestsThatTriggerWarnings="true"
8+
displayDetailsOnPhpunitDeprecations="true">
29
<testsuites>
3-
<testsuite name="Tests">
10+
<testsuite name="default">
411
<directory>test</directory>
512
</testsuite>
613
</testsuites>
7-
<filter>
8-
<whitelist processUncoveredFilesFromWhitelist="true">
9-
<directory suffix=".php">src</directory>
10-
<exclude>
11-
<directory suffix=".php">vendor/setbased</directory>
12-
</exclude>
13-
</whitelist>
14-
</filter>
15-
<logging>
16-
<log type="coverage-html" target="test/report"/>
17-
<log type="coverage-clover" target="test/coverage.xml"/>
18-
</logging>
14+
15+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
16+
<include>
17+
<directory>src</directory>
18+
</include>
19+
</source>
1920
</phpunit>

0 commit comments

Comments
 (0)