File tree Expand file tree Collapse file tree 4 files changed +58
-2
lines changed
tests/Console/ModelsCommand/GeneratePhpdocWithMixin Expand file tree Collapse file tree 4 files changed +58
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,18 @@ All notable changes to this project will be documented in this file.
11
11
12
12
### Added
13
13
14
- 2024-02-14 , 2.15.0
14
+ 2024-02-15 , 2.15.1
15
15
------------------
16
16
17
+ ### Fixed
18
+ - Fix final class keyword in wrong position [ #1517 / barryvdh] ( https://github.com/barryvdh/laravel-ide-helper/pull/1517 )
19
+
20
+ ### Changed
21
+
22
+ ### Added
23
+
24
+ 2024-02-14, 2.15.0
25
+ ------------------
17
26
### Fixed
18
27
- Fix case issue in ` ModelsCommand::unsetMethod() ` [ #1453 / leo108] ( https://github.com/barryvdh/laravel-ide-helper/pull/1453 )
19
28
- Fix non-facade classes will result in no autocomplete [ #841 / netpok] ( https://github.com/barryvdh/laravel-ide-helper/pull/841 )
Original file line number Diff line number Diff line change @@ -1083,7 +1083,7 @@ protected function createPhpDocs($class)
1083
1083
$ classname = $ this ->write_mixin ? $ mixinClassName : $ classname ;
1084
1084
1085
1085
$ allowDynamicAttributes = $ this ->write_mixin ? "#[\AllowDynamicProperties] \n\t" : '' ;
1086
- $ output = "namespace {$ namespace }{ \n{$ docComment }\n\t{$ keyword }{$ allowDynamicAttributes }class {$ classname } " ;
1086
+ $ output = "namespace {$ namespace }{ \n{$ docComment }\n\t{$ allowDynamicAttributes }{$ keyword }class {$ classname } " ;
1087
1087
1088
1088
if (!$ this ->write_mixin ) {
1089
1089
$ output .= "extends \Eloquent " ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Barryvdh \LaravelIdeHelper \Tests \Console \ModelsCommand \GeneratePhpdocWithMixin \Models ;
6
+
7
+ use Illuminate \Database \Eloquent \Model ;
8
+
9
+ /**
10
+ * @property $someProp
11
+ * @method someMethod(string $method)
12
+ * @mixin IdeHelperPost
13
+ */
14
+ final class FinalPost extends Model
15
+ {
16
+ }
Original file line number Diff line number Diff line change 6
6
7
7
use Illuminate \Database \Eloquent \Model ;
8
8
9
+ /**
10
+ * @property $someProp
11
+ * @method someMethod(string $method)
12
+ * @mixin IdeHelperFinalPost
13
+ */
14
+ final class FinalPost extends Model
15
+ {
16
+ }
17
+ <?php
18
+
19
+ declare (strict_types=1 );
20
+
21
+ namespace Barryvdh \LaravelIdeHelper \Tests \Console \ModelsCommand \GeneratePhpdocWithMixin \Models ;
22
+
23
+ use Illuminate \Database \Eloquent \Model ;
24
+
9
25
/**
10
26
* @property $someProp
11
27
* @method someMethod(string $method)
@@ -27,6 +43,21 @@ class Post extends Model
27
43
*/
28
44
29
45
46
+ namespace Barryvdh \LaravelIdeHelper \Tests \Console \ModelsCommand \GeneratePhpdocWithMixin \Models {
47
+ /**
48
+ * Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models\FinalPost
49
+ *
50
+ * @property $someProp
51
+ * @method someMethod(string $method)
52
+ * @method static \Illuminate\Database\Eloquent\Builder|FinalPost newModelQuery()
53
+ * @method static \Illuminate\Database\Eloquent\Builder|FinalPost newQuery()
54
+ * @method static \Illuminate\Database\Eloquent\Builder|FinalPost query()
55
+ * @mixin \Eloquent
56
+ */
57
+ #[\AllowDynamicProperties]
58
+ final class IdeHelperFinalPost {}
59
+ }
60
+
30
61
namespace Barryvdh \LaravelIdeHelper \Tests \Console \ModelsCommand \GeneratePhpdocWithMixin \Models {
31
62
/**
32
63
* Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models\Post
You can’t perform that action at this time.
0 commit comments