diff --git a/.github/workflows/build-phar.yml b/.github/workflows/build-phar.yml index b8bb4d79..559a104f 100644 --- a/.github/workflows/build-phar.yml +++ b/.github/workflows/build-phar.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: include: - - php: 8.0 + - php: 8.1 tools: "composer:v2" coverage: "none" git-fetch-depth: 1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5ad0ea3a..a380d170 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: - name: Checkout code uses: actions/checkout@master - name: Checking PHP syntax error - uses: overtrue/phplint@8.0 + uses: overtrue/phplint@8.1 with: path: . options: --exclude=*.log diff --git a/Dockerfile b/Dockerfile index e8480aec..2f4d0887 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -ARG VERSION=8.0 +ARG VERSION=8.1 FROM composer:2.0 AS build -RUN composer global require overtrue/phplint:^4.0.0 +RUN composer global require overtrue/phplint:^5.0.0 FROM php:${VERSION}-cli-alpine COPY --from=build /tmp/vendor /root/.composer/vendor diff --git a/composer.json b/composer.json index 8553ed5a..9a5f4321 100644 --- a/composer.json +++ b/composer.json @@ -16,12 +16,12 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-json": "*", - "symfony/console": "^5.3.11|^6.0", - "symfony/finder": "^5.3.7|^6.0", - "symfony/process": "^5.3.12|^6.0", - "symfony/yaml": "^5.3.11|^6.0", + "symfony/console": "^6.0", + "symfony/finder": "^6.0", + "symfony/process": "^6.0", + "symfony/yaml": "^6.0", "n98/junit-xml": "1.1.0" }, "require-dev": { @@ -68,5 +68,10 @@ }, "bin": [ "bin/phplint" - ] + ], + "config": { + "allow-plugins": { + "bamarni/composer-bin-plugin": true + } + } } diff --git a/src/Cache.php b/src/Cache.php index f59d1011..023b7fc9 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -15,7 +15,7 @@ public static function get(): mixed return $content ? json_decode($content, true) : null; } - #[Pure] + #[Pure(true)] public static function exists(): bool { return file_exists(self::getFilename());