Skip to content

Commit 37284ad

Browse files
committed
Fix deprecation
1 parent 19333a5 commit 37284ad

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
fail-fast: false
99
matrix:
1010
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
11-
php-version: ['8.0', '8.1', '8.2', '8.3']
11+
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
1212
runs-on: ${{ matrix.operating-system }}
1313
steps:
1414
- name: Fix autocrlf on Windows
1515
if: matrix.operating-system == 'windows-latest'
1616
run: git config --global core.autocrlf false
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919
- name: Setup PHP
2020
uses: shivammathur/setup-php@v2
2121
with:

src/Config.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,10 @@ public function getRules(): array {
8282
'single_quote' => true,
8383
'spaces_inside_parentheses' => ['space' => 'none'],
8484
'type_declaration_spaces' => ['elements' => ['function', 'property']],
85-
'visibility_required' => true,
85+
'modifier_keywords' => true,
8686
'whitespace_after_comma_in_array' => true
8787
];
8888

89-
if (phpversion() >= '8.0') {
90-
//temporary workaround to avoid spaces between PHP 8 union types
91-
$rules['binary_operator_spaces']['operators'] = ['|' => null];
92-
}
93-
9489
return $rules;
9590
}
9691
}

0 commit comments

Comments
 (0)