Skip to content

Commit

Permalink
fix: higher order generics
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw committed Feb 12, 2025
1 parent c5c0834 commit b206a17
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4"]
laravel: ["^11.41.3", "^12.0"]
laravel: ["^11.42.0", "^12.0"]
dependencies:
- "lowest"
- "highest"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4"]
laravel: ["^11.41.3", "^12.0"]
laravel: ["^11.42.0", "^12.0"]
dependencies:
- "lowest"
- "highest"
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
"require": {
"php": "^8.2",
"ext-json": "*",
"illuminate/console": "^11.41.3 || ^12.0",
"illuminate/container": "^11.41.3 || ^12.0",
"illuminate/contracts": "^11.41.3 || ^12.0",
"illuminate/database": "^11.41.3 || ^12.0",
"illuminate/http": "^11.41.3 || ^12.0",
"illuminate/pipeline": "^11.41.3 || ^12.0",
"illuminate/support": "^11.41.3 || ^12.0",
"illuminate/console": "^11.42.0 || ^12.0",
"illuminate/container": "^11.42.0 || ^12.0",
"illuminate/contracts": "^11.42.0 || ^12.0",
"illuminate/database": "^11.42.0 || ^12.0",
"illuminate/http": "^11.42.0 || ^12.0",
"illuminate/pipeline": "^11.42.0 || ^12.0",
"illuminate/support": "^11.42.0 || ^12.0",
"phpmyadmin/sql-parser": "^5.9.0",
"phpstan/phpstan": "^2.1.3"
},
"require-dev": {
"doctrine/coding-standard": "^12.0",
"nikic/php-parser": "^5.3",
"laravel/framework": "^11.41.3 || ^12.0",
"laravel/framework": "^11.42.0 || ^12.0",
"mockery/mockery": "^1.6",
"orchestra/canvas": "^v9.1.3 || ^10.0",
"orchestra/testbench-core": "^9.5.2 || ^10.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/Type/data/higher-order-collection-proxy-methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function test(
assertType('Illuminate\Support\Collection<int, bool>', $users->map->isActive());
assertType('Illuminate\Support\Collection<int, Illuminate\Database\Eloquent\Relations\HasMany<App\Account, App\User>>', $users->map->accounts());
assertType('Illuminate\Support\Collection<int, int>', $users->map->id());
assertType('array<int, array>', $user->accounts->map->getAttributes()->all());
assertType('array<int, array<string, mixed>>', $user->accounts->map->getAttributes()->all());
assertType('int', $users->max->id());
assertType('int', $users->min->id());
assertType('Illuminate\Database\Eloquent\Collection<int, Illuminate\Database\Eloquent\Collection<int, App\User>>', $users->partition->isActive());
Expand Down

0 comments on commit b206a17

Please sign in to comment.