From 651275814067cd73df37d97864740e3c0b66e1d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Aug 2022 10:32:08 +0000 Subject: [PATCH 1/2] Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/php-cs-fixer.yml | 2 +- .github/workflows/phpstan.yml | 2 +- .github/workflows/run-tests.yml | 2 +- .github/workflows/update-changelog.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index f55d1fa..0672942 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 5fb7b18..7590631 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -11,7 +11,7 @@ jobs: name: phpstan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7332b7a..6869ef4 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index fa56639..b20f3b6 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: main From ca12b0e24a16d9ac7425e475749a01f32e0ae5dc Mon Sep 17 00:00:00 2001 From: CyberiaResurrection Date: Fri, 26 Aug 2022 12:34:06 +0000 Subject: [PATCH 2/2] Fix styling --- src/JitLoadRelationships.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/JitLoadRelationships.php b/src/JitLoadRelationships.php index 4a0d7e8..4495fd8 100644 --- a/src/JitLoadRelationships.php +++ b/src/JitLoadRelationships.php @@ -2,13 +2,13 @@ namespace Cruxinator\JitLoading; +use Cruxinator\JitLoading\Exceptions\JitLoadException; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Log; use LogicException; -use Cruxinator\JitLoading\Exceptions\JitLoadException; /** * Trait JitLoadRelationships @@ -89,6 +89,7 @@ private function logAutoload(string $relationship): bool if ($this->strictEagerLoad()) { $message = 'Relationship '.static::class.'::'.$relationship.' was JIT-loaded.'; + throw new JitLoadException($message); }