Skip to content

Commit 61f02b0

Browse files
authored
Fix linter CI (#120)
* Update PHP version for style checks * Fix linter error
1 parent 8ce255f commit 61f02b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Install PHP
4444
uses: shivammathur/setup-php@v2
4545
with:
46-
php-version: '7.4'
46+
php-version: '8.0'
4747

4848
- name: Validate composer.json and composer.lock
4949
run: composer validate

src/Command/IndexCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function getEntitiesFromArgs(InputInterface $input, OutputInterface $o
4545
$list = \explode(',', $indexList);
4646
$indexNames = collect($list)->transform(function (string $item): string {
4747
// Check if the given index name already contains the prefix
48-
if (false === strpos($item, $this->prefix)) {
48+
if (!str_contains($item, $this->prefix)) {
4949
return $this->prefix.$item;
5050
}
5151

0 commit comments

Comments
 (0)