Skip to content

Commit 72c5afb

Browse files
committed
Support for PHP 8.3 and 8.4 only.
1 parent 398025f commit 72c5afb

File tree

6 files changed

+234
-239
lines changed

6 files changed

+234
-239
lines changed

.github/workflows/unit.yml

Lines changed: 3 additions & 4 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,8 +26,8 @@ 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"
3433
uses: "actions/cache@v4"

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
/bin/
44
/build/
55
/composer.lock
6-
/custom.task.properties
7-
/custom.type.properties
86
/doc/
97
/test/MySql/etc/routines.json
108
/test/MySql/etc/stratum.cfg

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414
"type": "library",
1515
"license": "MIT",
1616
"require": {
17-
"php": ">=8.1",
17+
"php": ">=8.3",
1818
"hassankhan/config": "^3.1.0",
1919
"setbased/helper-cast": "^3.0.0"
2020
},
21-
"minimum-stability": "dev",
22-
"prefer-stable": true,
2321
"require-dev": {
24-
"phing/phing": "^3.0.0-RC4",
25-
"phpunit/phpunit": "^9.5.28"
22+
"phing/phing": "^3.0.1",
23+
"phpunit/phpunit": "^11.5.22"
2624
},
2725
"autoload": {
2826
"psr-4": {

phpunit.xml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
<?xml version="1.0"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="test/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
4-
<include>
5-
<directory suffix=".php">src</directory>
6-
</include>
7-
<exclude>
8-
<directory suffix=".php">vendor/setbased</directory>
9-
</exclude>
10-
<report>
11-
<clover outputFile="test/coverage.xml"/>
12-
<html outputDirectory="test/report"/>
13-
</report>
14-
</coverage>
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">
159
<testsuites>
16-
<testsuite name="Tests">
10+
<testsuite name="default">
1711
<directory>test</directory>
1812
</testsuite>
1913
</testsuites>
20-
<logging/>
14+
15+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
16+
<include>
17+
<directory>src</directory>
18+
</include>
19+
</source>
2120
</phpunit>

src/TypedConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Config $config)
3333

3434
//--------------------------------------------------------------------------------------------------------------------
3535
/**
36-
* Creates an exception with appropriate message.
36+
* Creates an exception with the appropriate message.
3737
*
3838
* @param string $key The key (in dot notation).
3939
* @param string $type The expected type.

0 commit comments

Comments
 (0)