Skip to content

Commit

Permalink
PHP 8.1 resolved #120
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 6, 2022
1 parent b395e50 commit c5a9df9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -68,5 +68,10 @@
},
"bin": [
"bin/phplint"
]
],
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
}
}
2 changes: 1 addition & 1 deletion src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c5a9df9

Please sign in to comment.