Skip to content

Commit 6364c54

Browse files
committed
Fixed phpstan static usage warning, updated ci flows
CI flow updates to follow deprecation warnings
1 parent 8ec6b07 commit 6364c54

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/analyse-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- name: Get Composer Cache Directory
1919
id: composer-cache
2020
run: |
21-
echo "::set-output name=dir::$(composer config cache-files-dir)"
21+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
2222
2323
- name: Cache composer packages
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: ${{ steps.composer-cache.outputs.dir }}
2727
key: ${{ runner.os }}-composer-8.1

.github/workflows/test-migrations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- name: Get Composer Cache Directory
2222
id: composer-cache
2323
run: |
24-
echo "::set-output name=dir::$(composer config cache-files-dir)"
24+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
2525
2626
- name: Cache composer packages
27-
uses: actions/cache@v2
27+
uses: actions/cache@v3
2828
with:
2929
path: ${{ steps.composer-cache.outputs.dir }}
3030
key: ${{ runner.os }}-composer-${{ matrix.php }}

.github/workflows/test-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- name: Get Composer Cache Directory
2222
id: composer-cache
2323
run: |
24-
echo "::set-output name=dir::$(composer config cache-files-dir)"
24+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
2525
2626
- name: Cache composer packages
27-
uses: actions/cache@v2
27+
uses: actions/cache@v3
2828
with:
2929
path: ${{ steps.composer-cache.outputs.dir }}
3030
key: ${{ runner.os }}-composer-${{ matrix.php }}

app/Util/SimpleListOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function fromRequest(Request $request, string $typeKey, bool $sort
3434
$sort = setting()->getForCurrentUser($typeKey . '_sort', '');
3535
$order = setting()->getForCurrentUser($typeKey . '_sort_order', $sortDescDefault ? 'desc' : 'asc');
3636

37-
return new static($typeKey, $sort, $order, $search);
37+
return new self($typeKey, $sort, $order, $search);
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)