diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7013219..5b70c6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,11 +7,11 @@ jobs: runs-on: ubuntu-latest env: - COMPOSER_ROOT_VERSION: 3.99.99 + COMPOSER_ROOT_VERSION: 4.99.99 strategy: matrix: - php: [8.1, 8.2] + php: [8.1, 8.2, 8.3] steps: - name: Checkout code diff --git a/composer.json b/composer.json index ad5e49f..9a9492c 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "ext-mbstring": "*", "codeception/codeception": "^5.0.8", "codeception/lib-web": "^1.0.1", - "phpunit/phpunit": "^10.0", + "phpunit/phpunit": "^10.0 || ^11.0", "symfony/browser-kit": "^4.4.24 || ^5.4 || ^6.0 || ^7.0", "symfony/dom-crawler": "^4.4.30 || ^5.4 || ^6.0 || ^7.0" }, diff --git a/tests/data/app/data.php b/tests/data/app/data.php index 18288ae..fcea590 100755 --- a/tests/data/app/data.php +++ b/tests/data/app/data.php @@ -30,8 +30,10 @@ public static function clean() protected static function load() { $data = file_get_contents(__DIR__.self::$filename); - $data = $data ? unserialize($data) : $data = array(); - if (!is_array($data)) $data = array(); + $data = $data ? unserialize(trim($data)) : []; + if (!is_array($data)) { + $data = []; + } return $data; }