]> BookStack Code Mirror - bookstack/commitdiff
Fixed phpstan static usage warning, updated ci flows
authorDan Brown <redacted>
Thu, 3 Nov 2022 14:14:22 +0000 (14:14 +0000)
committerDan Brown <redacted>
Thu, 3 Nov 2022 14:14:22 +0000 (14:14 +0000)
CI flow updates to follow deprecation warnings

.github/workflows/analyse-php.yml
.github/workflows/test-migrations.yml
.github/workflows/test-php.yml
app/Util/SimpleListOptions.php

index 191399d78b8a54f8565c06619a3767dffd58f496..fd56a53ef9ac645dd81a0def99862914b9cae77d 100644 (file)
@@ -18,10 +18,10 @@ jobs:
     - name: Get Composer Cache Directory
       id: composer-cache
       run: |
-        echo "::set-output name=dir::$(composer config cache-files-dir)"
+        echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
 
     - name: Cache composer packages
-      uses: actions/cache@v2
+      uses: actions/cache@v3
       with:
         path: ${{ steps.composer-cache.outputs.dir }}
         key: ${{ runner.os }}-composer-8.1
index e9b66a0a65d09001372084761589ab66be8ba851..d762d7eab3e2a258fb41a06ca4de5e7a9a7c5a94 100644 (file)
@@ -21,10 +21,10 @@ jobs:
       - name: Get Composer Cache Directory
         id: composer-cache
         run: |
-          echo "::set-output name=dir::$(composer config cache-files-dir)"
+          echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
 
       - name: Cache composer packages
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ${{ steps.composer-cache.outputs.dir }}
           key: ${{ runner.os }}-composer-${{ matrix.php }}
index 917038f599dbf97896e2abedcbdacaba8dff75d7..4185e83c31071a25b65910e30de216a2a4f6dc26 100644 (file)
@@ -21,10 +21,10 @@ jobs:
     - name: Get Composer Cache Directory
       id: composer-cache
       run: |
-        echo "::set-output name=dir::$(composer config cache-files-dir)"
+        echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
 
     - name: Cache composer packages
-      uses: actions/cache@v2
+      uses: actions/cache@v3
       with:
         path: ${{ steps.composer-cache.outputs.dir }}
         key: ${{ runner.os }}-composer-${{ matrix.php }}
index cb7e75a2d5609f48560d3aa6ac3e35078889e780..81d8a5876360e8ef98d776203f65f204085e6091 100644 (file)
@@ -34,7 +34,7 @@ class SimpleListOptions
         $sort = setting()->getForCurrentUser($typeKey . '_sort', '');
         $order = setting()->getForCurrentUser($typeKey . '_sort_order', $sortDescDefault ? 'desc' : 'asc');
 
-        return new static($typeKey, $sort, $order, $search);
+        return new self($typeKey, $sort, $order, $search);
     }
 
     /**