Skip to content

Commit

Permalink
fix for test runners
Browse files Browse the repository at this point in the history
  • Loading branch information
cviebrock committed Jan 6, 2024
1 parent 6c5024c commit 6a8f173
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -27,9 +27,9 @@ jobs:
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
4 changes: 3 additions & 1 deletion src/Services/SlugService.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ protected function getExistingSlugs(string $slug, string $attribute, array $conf
}

// get the list of all matching slugs
$results = $query->select([$attribute, $this->model->getQualifiedKeyName()])
$results = $query
->withoutEagerLoads()
->select([$attribute, $this->model->getQualifiedKeyName()])
->get()
->toBase();

Expand Down

0 comments on commit 6a8f173

Please sign in to comment.