Skip to content

Commit

Permalink
Merge branch 'release/6.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanluca committed Feb 6, 2023
2 parents da61b61 + ce353de commit 85d2771
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1]
php: [8.1, 8.2]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Lint code
run: vendor/bin/php-cs-fixer fix --dry-run --diff
run: PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --dry-run --diff

- name: Run tests
run: vendor/bin/phpunit
5 changes: 5 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'no_unneeded_control_parentheses' => [
'statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield'],
],
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to `sebastiaanluca/php-pipe-operator` will be documented in

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 6.0.0 (2023-02-06)

### Added

- Added support for PHP 8.2

### Removed

- Dropped support for PHP 8.0

## 5.1.0 (2022-03-17)

### Removed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Method chaining (or fluent expressions) **for any value using any method.**

## Requirements

- PHP 8 or 8.1
- PHP 8.1 or 8.2

## How to install

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
}
],
"require": {
"php": "~8.1"
"php": "~8.1|~8.2"
},
"require-dev": {
"ext-mbstring": "~8.1",
"friendsofphp/php-cs-fixer": "^3.7",
"phpunit/phpunit": "^9.5"
"ext-mbstring": "~8.1|~8.2",
"friendsofphp/php-cs-fixer": "^3.14",
"phpunit/phpunit": "^9.6"
},
"autoload": {
"psr-4": {
Expand All @@ -47,8 +47,8 @@
"scripts": {
"composer:validate": "@composer validate --strict --ansi",
"test": "vendor/bin/phpunit",
"lint": "vendor/bin/php-cs-fixer fix --dry-run --diff --ansi",
"fix": "vendor/bin/php-cs-fixer fix --ansi",
"lint": "PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --dry-run --diff --ansi",
"fix": "PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --ansi",
"check": [
"@composer:validate",
"@lint",
Expand Down

0 comments on commit 85d2771

Please sign in to comment.