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 c5a9df9 commit 83d68ba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@
## Installation

### required
- PHP >= 8.0
- PHP >= 8.1
- Composer >= 2.0

> if you are using php 7.0, please refer [the 7.4 branch](https://github.com/overtrue/phplint/tree/7.4).
> if you are using php 7.0, please refer [the 7.4 branch](https://github.com/overtrue/phplint/tree/7.4).
> if you are using php 8.0, please refer [the 8.0 branch](https://github.com/overtrue/phplint/tree/8.0).
### Locally, if you have PHP

```shell
$ composer require overtrue/phplint:^4.0 --dev -vvv
$ composer require overtrue/phplint:^5.0 --dev -vvv
```

### Locally, if you only have Docker

```
docker pull overtrue/phplint:8.0
docker pull overtrue/phplint:8.1
```

## Usage
Expand Down Expand Up @@ -133,15 +134,15 @@ $errors = $linter->lint();
### GitHub Actions

```yaml
uses: overtrue/phplint@8.0
uses: overtrue/phplint@8.1
with:
path: .
options: --exclude=*.log
```
### Other CI/CD (f.e. Bitbucket Pipelines, GitLab CI)
Run this command using `overtrue/phplint:8.0` Docker image:
Run this command using `overtrue/phplint:8.1` Docker image:

```
/root/.composer/vendor/bin/phplint ./ --exclude=vendor
Expand Down

0 comments on commit 83d68ba

Please sign in to comment.