Skip to content

Commit 05259b6

Browse files
Add support for Laravel 11 (#1520)
* update dependencies * Implement new methods for `Authenticatable` contract * Added Laravel 11 to CI test target * normalize composer.json * Remove obsolete migration method (column type) from test * Update snapshots * Add changelog entry * Update readme --------- Co-authored-by: 武田 憲太郎 <[email protected]> Co-authored-by: barryvdh <[email protected]>
1 parent 8bfe918 commit 05259b6

File tree

21 files changed

+26
-71
lines changed

21 files changed

+26
-71
lines changed

.github/workflows/run-integration-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
php: [8.3, 8.2, 8.1]
23-
laravel: [10.*]
23+
laravel: [11.*, 10.*]
24+
exclude:
25+
- php: 8.1
26+
laravel: 11.*
2427

2528
name: P${{ matrix.php }} - Laravel${{ matrix.laravel }}
2629
steps:

.github/workflows/run-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ jobs:
2222
matrix:
2323
os: [ubuntu-20.04, windows-2019]
2424
php: [8.3, 8.2, 8.1]
25-
laravel: [10.*]
25+
laravel: [10.*, 11.*]
2626
stability: [prefer-lowest, prefer-stable]
27-
27+
dependency-version: [prefer-lowest, prefer-stable]
28+
exclude:
29+
- php: 8.1
30+
laravel: 11.*
2831
steps:
2932
- name: Set git to use LF
3033
if: ${{ matrix.os == 'windows-2019' }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
1414
- You _might_ have top-level dependency on doctrine/dbal. This may have been in the past due to ide-helper, we suggest to check if you still need it and remove it otherwise
1515

1616
### Added
17+
- Support for Laravel 11 [#1520 / KentarouTakeda](https://github.com/barryvdh/laravel-ide-helper/pull/1520)
1718

1819
2024-02-15, 2.15.1
1920
------------------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
This package generates helper files that enable your IDE to provide accurate autocompletion.
1212
Generation is done based on the files in your project, so they are always up-to-date.
1313

14-
It supports Laravel 9+ and PHP 8.0+
14+
The 3.x branch supports Laravel 10 and 11. For older version, use the 2.x releases.
1515

1616
- [Installation](#installation)
1717
- [Usage](#usage)

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@
2424
"ext-json": "*",
2525
"barryvdh/reflection-docblock": "^2.1.1",
2626
"composer/class-map-generator": "^1.0",
27-
"illuminate/console": "^10",
28-
"illuminate/database": "^10.38",
29-
"illuminate/filesystem": "^10",
30-
"illuminate/support": "^10",
27+
"illuminate/console": "^10 || ^11",
28+
"illuminate/database": "^10.38 || ^11",
29+
"illuminate/filesystem": "^10 || ^11",
30+
"illuminate/support": "^10 || ^11",
3131
"nikic/php-parser": "^4.18 || ^5",
3232
"phpdocumentor/type-resolver": "^1.1.0"
3333
},
3434
"require-dev": {
3535
"ext-pdo_sqlite": "*",
3636
"friendsofphp/php-cs-fixer": "^3",
37-
"illuminate/config": "^9 || ^10",
38-
"illuminate/view": "^9 || ^10",
37+
"illuminate/config": "^9 || ^10 || ^11",
38+
"illuminate/view": "^9 || ^10 || ^11",
3939
"mockery/mockery": "^1.4",
40-
"orchestra/testbench": "^8",
41-
"phpunit/phpunit": "^9",
42-
"spatie/phpunit-snapshot-assertions": "^4",
40+
"orchestra/testbench": "^8 || ^9",
41+
"phpunit/phpunit": "^9 || ^10.5",
42+
"spatie/phpunit-snapshot-assertions": "^4 || ^5",
4343
"vimeo/psalm": "^5.4"
4444
},
4545
"suggest": {
46-
"illuminate/events": "Required for automatic helper generation (^6|^7|^8|^9|^10)."
46+
"illuminate/events": "Required for automatic helper generation (^6|^7|^8|^9|^10|^11)."
4747
},
4848
"minimum-stability": "dev",
4949
"prefer-stable": true,

tests/Console/ModelsCommand/AllowGlobDirectory/__snapshots__/Test__test__1.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
* @property float $double_not_nullable
4747
* @property string|null $decimal_nullable
4848
* @property string $decimal_not_nullable
49-
* @property string|null $unsigned_decimal_nullable
50-
* @property string $unsigned_decimal_not_nullable
5149
* @property integer|null $boolean_nullable
5250
* @property integer $boolean_not_nullable
5351
* @property string|null $enum_nullable
@@ -143,8 +141,6 @@
143141
* @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value)
144142
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value)
145143
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value)
146-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value)
147-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value)
148144
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value)
149145
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value)
150146
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value)

tests/Console/ModelsCommand/DoesNotGeneratePhpdocWithExternalEloquentBuilder/__snapshots__/Test__test__1.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
* @property float $double_not_nullable
5353
* @property string|null $decimal_nullable
5454
* @property string $decimal_not_nullable
55-
* @property string|null $unsigned_decimal_nullable
56-
* @property string $unsigned_decimal_not_nullable
5755
* @property integer|null $boolean_nullable
5856
* @property integer $boolean_not_nullable
5957
* @property string|null $enum_nullable
@@ -149,8 +147,6 @@
149147
* @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value)
150148
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value)
151149
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value)
152-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value)
153-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value)
154150
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value)
155151
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value)
156152
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value)

tests/Console/ModelsCommand/GenerateBasicPhpDocWithEnumDefaults/__snapshots__/Test__test__1.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
* @property float $double_not_nullable
4949
* @property string|null $decimal_nullable
5050
* @property string $decimal_not_nullable
51-
* @property string|null $unsigned_decimal_nullable
52-
* @property string $unsigned_decimal_not_nullable
5351
* @property integer|null $boolean_nullable
5452
* @property integer $boolean_not_nullable
5553
* @property string|null $enum_nullable
@@ -146,8 +144,6 @@
146144
* @method static Builder|Post whereTinyIntegerNullable($value)
147145
* @method static Builder|Post whereUnsignedBigIntegerNotNullable($value)
148146
* @method static Builder|Post whereUnsignedBigIntegerNullable($value)
149-
* @method static Builder|Post whereUnsignedDecimalNotNullable($value)
150-
* @method static Builder|Post whereUnsignedDecimalNullable($value)
151147
* @method static Builder|Post whereUnsignedIntegerNotNullable($value)
152148
* @method static Builder|Post whereUnsignedIntegerNullable($value)
153149
* @method static Builder|Post whereUnsignedMediumIntegerNotNullable($value)

tests/Console/ModelsCommand/GenerateBasicPhpdoc/__snapshots__/Test__test__1.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
* @property float $double_not_nullable
4747
* @property string|null $decimal_nullable
4848
* @property string $decimal_not_nullable
49-
* @property string|null $unsigned_decimal_nullable
50-
* @property string $unsigned_decimal_not_nullable
5149
* @property integer|null $boolean_nullable
5250
* @property integer $boolean_not_nullable
5351
* @property string|null $enum_nullable
@@ -143,8 +141,6 @@
143141
* @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value)
144142
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value)
145143
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value)
146-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value)
147-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value)
148144
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value)
149145
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value)
150146
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value)

tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
* @property float $doubleNotNullable
4747
* @property string|null $decimalNullable
4848
* @property string $decimalNotNullable
49-
* @property string|null $unsignedDecimalNullable
50-
* @property string $unsignedDecimalNotNullable
5149
* @property integer|null $booleanNullable
5250
* @property integer $booleanNotNullable
5351
* @property string|null $enumNullable
@@ -143,8 +141,6 @@
143141
* @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value)
144142
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value)
145143
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value)
146-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value)
147-
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value)
148144
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value)
149145
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value)
150146
* @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value)

0 commit comments

Comments
 (0)