Parcourir la source

ci: re-enable php 8.3 unit test

M1Screw il y a 2 ans
Parent
commit
88a87ef22c
2 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 0 1
      .github/workflows/unit.yaml
  2. 1 1
      src/Models/User.php

+ 0 - 1
.github/workflows/unit.yaml

@@ -31,7 +31,6 @@ jobs:
         php vendor/bin/phpunit
 
   unit-test-php83:
-    if: ${{ false }}
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3

+ 1 - 1
src/Models/User.php

@@ -119,7 +119,7 @@ final class User extends Model
             $query->whereIn('node_group', $group);
         }
 
-        return where(static function ($query): void {
+        return $query->where(static function ($query): void {
             $query->where('node_bandwidth_limit', '=', 0)->orWhereRaw('node_bandwidth < node_bandwidth_limit');
         })->orderBy('node_class')
             ->orderBy('name')