diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..44e3ff0 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + groups: + deps: + patterns: + - '*' diff --git a/.github/workflows/composer-normalize.yml b/.github/workflows/composer-normalize.yml index 7897561..9a2fc97 100644 --- a/.github/workflows/composer-normalize.yml +++ b/.github/workflows/composer-normalize.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Validate Composer configuration run: composer validate --strict @@ -23,6 +23,6 @@ jobs: composer global require ergebnis/composer-normalize composer normalize - - uses: stefanzweifel/git-auto-commit-action@v4.0.0 + - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: normalize composer.json diff --git a/.github/workflows/fix-code-style.yml b/.github/workflows/fix-code-style.yml index ef1909e..8019a32 100644 --- a/.github/workflows/fix-code-style.yml +++ b/.github/workflows/fix-code-style.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -27,7 +27,7 @@ jobs: - run: composer fix-style continue-on-error: true - - uses: stefanzweifel/git-auto-commit-action@v4 + - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: composer fix-style commit_author: laravel-ide-helper diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml index cd0ebb9..96173bf 100644 --- a/.github/workflows/run-integration-tests.yml +++ b/.github/workflows/run-integration-tests.yml @@ -18,7 +18,7 @@ jobs: COMPOSER_NO_INTERACTION: 1 strategy: matrix: - php: [8.2, 8.1, 8.0, 7.4, 7.3] + php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3] laravel: [10.*, 9.*, 8.*] exclude: - php: 8.0 @@ -36,7 +36,7 @@ jobs: name: P${{ matrix.php }} - Laravel${{ matrix.laravel }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: src diff --git a/.github/workflows/run-static-analysis.yml b/.github/workflows/run-static-analysis.yml index 433c4a6..1085dfe 100644 --- a/.github/workflows/run-static-analysis.yml +++ b/.github/workflows/run-static-analysis.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index d78706c..55b79cd 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04, windows-2019] - php: [8.1, 8.0, 7.4, 7.3] + php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3] laravel: [8.*, 9.*, 10.*] dependency-version: [prefer-lowest, prefer-stable] exclude: @@ -48,7 +48,7 @@ jobs: git config --global core.eol lf - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/src/Alias.php b/src/Alias.php index 1907ecd..ff4ae67 100644 --- a/src/Alias.php +++ b/src/Alias.php @@ -20,6 +20,7 @@ use Illuminate\Config\Repository as ConfigRepository; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; use Illuminate\Support\Facades\Facade; use ReflectionClass; +use Throwable; class Alias { @@ -301,7 +302,7 @@ class Alias "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." . " Skipping $facade." ); - } catch (\Exception $e) { + } catch (Throwable $e) { $this->error('Exception: ' . $e->getMessage() . "\nSkipping $facade."); } } @@ -323,7 +324,7 @@ class Alias protected function addMagicMethods() { foreach ($this->magicMethods as $magic => $real) { - list($className, $name) = explode('::', $real); + [$className, $name] = explode('::', $real); if ((!class_exists($className) && !interface_exists($className)) || !method_exists($className, $name)) { continue; } diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 2aecdf2..dab117e 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -231,6 +231,7 @@ class ModelsCommand extends Command $output = "