Skip to content

Commit

Permalink
Upgrade to PHP 8.1 and higher.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Jan 26, 2023
1 parent f4f972b commit 49b519d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
1 change: 0 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.1"
- "8.2"
- "8.3"
Expand Down
6 changes: 0 additions & 6 deletions .unit-test

This file was deleted.

4 changes: 3 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
<!-- Runs all unit tests -->
<target name="unit">
<exec executable="bash" passthru="true" checkreturn="true">
<arg value=".unit-test"/>
<arg value="-e"/>
<arg value="-x"/>
<arg value="test/unit-test.sh"/>
</exec>
</target>
</project>
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
],
"license": "MIT",
"require": {
"php": ">=7.4",
"php": ">=8.1",
"ext-json": "*",
"setbased/error-handler": "^1.2.0",
"setbased/exception": "^2.2.0",
"setbased/helper-code-store-mysql": "^2.1.1",
"setbased/php-stratum-middle": "^5.10.0",
"setbased/php-stratum-mysql": "^6.5.0",
"setbased/typed-config": "^1.2.0",
"symfony/console": "^5.4.16 || ^6.2.2"
"setbased/error-handler": "^1.3.0",
"setbased/exception": "^2.3.0",
"setbased/helper-code-store-mysql": "^2.2.0",
"setbased/php-stratum-middle": "^5.11.0",
"setbased/php-stratum-mysql": "^6.6.0",
"setbased/typed-config": "^2.0.0",
"symfony/console": "^6.2.5"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"ext-pcntl": "*",
"ext-posix": "*",
"phing/phing": "^3.0.0-RC3",
"phpunit/phpunit": "^9.5.27",
"setbased/phing-extensions": "^3.0.1"
"phing/phing": "^3.0.0-RC4",
"phpunit/phpunit": "^9.5.28",
"setbased/phing-extensions": "^3.1.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/MySql/AuditDataLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function executeRows(string $query): array
/**
* @inheritdoc
*/
public function executeSingleton0(string $query)
public function executeSingleton0(string $query): mixed
{
$this->logQuery($query);

Expand All @@ -259,7 +259,7 @@ public function executeSingleton0(string $query)
/**
* @inheritdoc
*/
public function executeSingleton1(string $query)
public function executeSingleton1(string $query): mixed
{
$this->logQuery($query);

Expand Down
5 changes: 5 additions & 0 deletions test/unit-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e -x

mysql -v -uroot -h127.0.0.1 < test/MySql/ddl/0010_create_database.sql
mysql -v -uroot -h127.0.0.1 < test/MySql/ddl/0020_create_user.sql
./bin/phpunit

0 comments on commit 49b519d

Please sign in to comment.