Skip to content

Commit 0a84664

Browse files
[5.x] PHP 8.5 Compatibility (#13112)
Co-authored-by: Jason Varga <jason@pixelfear.com>
1 parent 7b47cce commit 0a84664

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
php: [8.1, 8.2, 8.3, 8.4]
19+
php: [8.1, 8.2, 8.3, 8.4, 8.5]
2020
laravel: [10.*, 11.*, 12.*]
2121
stability: [prefer-lowest, prefer-stable]
2222
os: [ubuntu-latest]
@@ -36,6 +36,10 @@ jobs:
3636
laravel: 12.*
3737
- php: 8.4
3838
laravel: 10.*
39+
- php: 8.5
40+
laravel: 10.*
41+
- php: 8.5
42+
laravel: 11.*
3943

4044
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
4145

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"composer/semver": "^3.4",
1515
"guzzlehttp/guzzle": "^6.3 || ^7.0",
1616
"james-heinrich/getid3": "^1.9.21",
17-
"laravel/framework": "^10.48.29 || ^11.44.1 || ^12.1.1",
17+
"laravel/framework": "^10.48.29 || ^11.44.1 || ^12.40.0",
1818
"laravel/prompts": "^0.1.16 || ^0.2.0 || ^0.3.0",
1919
"league/commonmark": "^2.2",
2020
"league/csv": "^9.0",
@@ -44,9 +44,10 @@
4444
"google/cloud-translate": "^1.6",
4545
"laravel/pint": "1.16.0",
4646
"mockery/mockery": "^1.6.10",
47-
"orchestra/testbench": "^8.14 || ^9.2 || ^10.0",
47+
"orchestra/testbench": "^8.36 || ^9.15 || ^10.8",
4848
"phpunit/phpunit": "^10.5.35 || ^11.5.3",
49-
"spatie/laravel-ray": "^1.37"
49+
"sebastian/recursion-context": "^5.0.1 || ^6.0.3",
50+
"spatie/laravel-ray": "^1.42"
5051
},
5152
"config": {
5253
"optimize-autoloader": true,

src/Stache/Repositories/CollectionRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function findByMount($mount): ?Collection
5050

5151
return Blink::once('mounted-collections', fn () => $this
5252
->all()
53-
->keyBy(fn ($collection) => $collection->mount()?->id())
54-
->filter()
53+
->keyBy(fn ($collection) => $collection->mount()?->id() ?? '__nomount')
54+
->filter(fn ($collection, $mountId) => $mountId !== '__nomount')
5555
)->get($mount->id());
5656
}
5757

0 commit comments

Comments
 (0)