Skip to content

Commit 85d2771

Browse files
Merge branch 'release/6.0.0'
2 parents da61b61 + ce353de commit 85d2771

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
php: [8.1]
15+
php: [8.1, 8.2]
1616
dependency-version: [prefer-lowest, prefer-stable]
1717
os: [ubuntu-latest]
1818

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

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

5353
- name: Run tests
5454
run: vendor/bin/phpunit

.php-cs-fixer.dist.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@
214214
'ordered_imports' => [
215215
'sort_algorithm' => 'alpha',
216216
],
217+
'global_namespace_import' => [
218+
'import_classes' => true,
219+
'import_constants' => true,
220+
'import_functions' => true,
221+
],
217222
'no_unneeded_control_parentheses' => [
218223
'statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield'],
219224
],

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to `sebastiaanluca/php-pipe-operator` will be documented in
44

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

7+
## 6.0.0 (2023-02-06)
8+
9+
### Added
10+
11+
- Added support for PHP 8.2
12+
13+
### Removed
14+
15+
- Dropped support for PHP 8.0
16+
717
## 5.1.0 (2022-03-17)
818

919
### Removed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Method chaining (or fluent expressions) **for any value using any method.**
3737

3838
## Requirements
3939

40-
- PHP 8 or 8.1
40+
- PHP 8.1 or 8.2
4141

4242
## How to install
4343

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
}
2020
],
2121
"require": {
22-
"php": "~8.1"
22+
"php": "~8.1|~8.2"
2323
},
2424
"require-dev": {
25-
"ext-mbstring": "~8.1",
26-
"friendsofphp/php-cs-fixer": "^3.7",
27-
"phpunit/phpunit": "^9.5"
25+
"ext-mbstring": "~8.1|~8.2",
26+
"friendsofphp/php-cs-fixer": "^3.14",
27+
"phpunit/phpunit": "^9.6"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -47,8 +47,8 @@
4747
"scripts": {
4848
"composer:validate": "@composer validate --strict --ansi",
4949
"test": "vendor/bin/phpunit",
50-
"lint": "vendor/bin/php-cs-fixer fix --dry-run --diff --ansi",
51-
"fix": "vendor/bin/php-cs-fixer fix --ansi",
50+
"lint": "PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --dry-run --diff --ansi",
51+
"fix": "PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --ansi",
5252
"check": [
5353
"@composer:validate",
5454
"@lint",

0 commit comments

Comments
 (0)