All notable changes to soyhuce/next-ide-helper
will be documented in this file
- Use $this return type for builders @methods by @bastien-phi in #123
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/1.0.0...1.0.1
- Upgrade dependencies and php 8.4 by @bastien-phi in #122
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.19.4...1.0.0
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #120
- Fix meta file generation by @edwinvdpol in #121
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.19.3...0.19.4
- Add tests on laravel 11, phpstan on php 8.3 by @bastien-phi in #114
- Bump ramsey/composer-install from 2 to 3 by @dependabot in #113
- Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in #116
- Fixed comment for ResolveModelAttributes by @zKoz210 in #117
- Added new flag for default laravel nullable timestamps. Issue #84 by @zKoz210 in #118
- @zKoz210 made their first contribution in #117
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.19.2...0.19.3
- Remove doctrine/dbal by @bastien-phi in #112
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.19.1...0.19.2
- Fix attribute type caster for postgresql by @bastien-phi in #111
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.19.0...0.19.1
- Support Laravel 11, drop doctrine/dbal, replace soyhuce/classmap-generator with composer/class-map-generator by @bastien-phi in #110
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.18.1...0.19.0
- Prevent crash when doctrine raises exception by @bastien-phi in #109
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.18.0...0.18.1
- Add a boolean to Attribute in order to define if it is nullable in database by @bastien-phi in #107
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.17.1...0.18.0
- fix: take account of tables prefix during models attributes resolving by @KarinaRashchynskaya in #106
- @KarinaRashchynskaya made their first contribution in #106
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.17.0...0.17.1
- Link sources for macros and model scopes by @bastien-phi in #103
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.16.0...0.17.0
- Tests under PHP 8.3, drop PHP 8.1 and Laravel 9 by @bastien-phi in #96
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.15.4...0.16.0
- Fix get type by @ElRochito in #101
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.15.3...0.15.4
- Added immutable dates to type caster by @bastien-phi and @edwinvdpol in #100
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.15.2...0.15.3
- Fix class does not exists by @bastien-phi in #98
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.15.1...0.15.2
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #94
- Hashed cast should resolve to a string by @bastien-phi in #95
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.15.0...0.15.1
- Bump actions/checkout from 3 to 4 by @dependabot in #90
- Fix nullable return type syntax in doc blocks by @bastien-phi in #92
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.14.0...0.15.0
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in #83
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #85
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #88
- Modify macro helper generation by @bastien-phi in #89
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.13.1...0.14.0
- Fix AsEnumCollection cast by @bastien-phi in #81
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.13.0...0.13.1
- Make has one property nullable by @bastien-phi in #80
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.12.0...0.13.0
- Fix docblock for class with modifier by @bastien-phi in #72
- Keep user defined tags by @bastien-phi in #74
- Don't throw exception when table columns is empty by @ElRochito in #75
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #77
- Laravel 10 support by @bastien-phi in #78
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.11.2...0.12.0
-Fix macro export when type is mixed or nullable union type by @bastien-phi in #69
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.11.1...0.11.2
- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot in #66
- TestCase Attribute by @edwinvdpol and @bastien-phi in #68
- @edwinvdpol made their first contribution in #68
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.11.0...0.11.1
- Bump actions/checkout from 2 to 3 by @dependabot in #63
- Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 by @dependabot in #64
- PHP 8.2, drop PHP 8.0 by @bastien-phi in #65
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.10.0...0.11.0
- Change Larastan friendly rendering by @bastien-phi in #62
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.9.2...0.10.0
- Bump dependabot/fetch-metadata from 1.3.0 to 1.3.1 by @dependabot in #55
- Bump dependabot/fetch-metadata from 1.3.1 to 1.3.3 by @dependabot in #56
- Fix overriding nullable type by @bastien-phi in #59
- Fix doctrine/dbal deprecation notice by @bastien-phi in #61
- @dependabot made their first contribution in #55
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.9.1...0.9.2
- Fix ModelDocBlock when the model uses HasFactory but the factory does not exist by @bastien-phi in #54
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.9.0...0.9.1
Full Changelog: https://github.com/Soyhuce/next-ide-helper/compare/0.8.1...0.9.0
- Remove generics tags from docblocks in
@method
tags, add@phpstan-method
with generics in - case
models.larastan_friendly
is enabled.
- Drop Laravel 8 support
- Docblocks for Eloquent Collections now respect Laravel 9 generic template
- Docblocks for Eloquent Factories now respect Laravel 9 generic template
- Fix error when
encrypted
does not have argument
- Correct cast for date and datetime with custom format
- Cast for
encrypted
fields
- Model factory resolution for Model::factory() docblock
- Laravel 9 support
- Support for attribute accessor and mutators via \Illuminate\Database\Eloquent\Casts\Attribute
- Delete where* query helper from mutated attributes which does not exist in database
- Laravel 8.77+ required
- Soyhuce\NextIdeHelper\Console\Bootstrapper moved to Soyhuce\NextIdeHelper\Contracts\Bootstrapper
- Soyhuce\NextIdeHelper\Domain\Models\Actions\ModelResolver moved to Soyhuce\NextIdeHelper\Contracts\ModelResolver
- Soyhuce\NextIdeHelper\Domain\Factories\Actions\FactoryResolver moved to
- Soyhuce\NextIdeHelper\Contracts\FactoryResolver
- All the built-in Model extensions
- Support for Enum casting
- Property type is mixed when getPropertyAttribute does not define its return type.
- Allow union and pure intersection types in model overrides
- Prefix generated classes with
__
in order to make them less searchable by the ide.
- Don't document magic methods on factories which already exist.
- Add support for doctrine/dbal:^3.0
- Add
extras
in QueryBuilder in order to add more information in query builder doc block.
- Fake relation classes in _ide_model do not extend Relation anymore but are marked with @mixin Relation.
- Add model constructor in _ide_models file
- Better export of default parameters in methods
- Do not instantiate the model factory to get its class but use Factory::resolveFactoryName() directly.
- Revert 0.5.0 : In _ide_models file, models do not overwrite real model anymore
- Revert 0.5.0 : Add @mixin to model docblock referencing models in _ide_models file
- In _ide_models file, models do not overwrite real model anymore
- Add @mixin to model docblock referencing models in _ide_models file
- Add constructor in _ide_macros files for macroable classes to prevent the ide complaining about constructor
- arguments (#28)
- Relation throwing an exception do not make the commands to fail anymore but are just ignored
- Correction of the way overrides are exported in docblock when they are an interface or a trait
- Remove not working tags for MorphTo
- Add ability to override type for model relations
- Query builder completion for models using
SoftDeletes
- Attributes with CastsInboundAttribues cast have database defined type.
- Return type for
sole
method - Add ability to override type for model attributes
- Add static for macros when declared static
- Support for Castable interface
- Nullable type for custom casts (#15)
- Laravel minimum version is now 8.0
- add missing command registration
- next-ide-helper:all command to run all commands
- Support PHP 8
- Fix self return type in macros
- Remove extra space after ... in macros
- Ability to add docblock methods for Laravel factories
- SpatieModelStateResolver to resolve model states from
spatie/laravel-model-states
- Ability to add extensions for Laravel factories
- ParameterReflection::asString when the parameter is variadic
- Allow installing composer/composer ^2.0
- Support Laravel 8
- command
next-ide-helper:aliases
to generate a file helping the ide to understand aliases
- Option to generate larastan-friendly doc blocks for models
- Typed
factory
method on model usingHasFactory
- HasOne relations are documented with
has
in factories docblocks
- nullable parameter syntax for factory docblock
- relations methods are now defined in docblock instead of actual methods in _ide_models.php file
- add static for
Model::query()
method in docblocks in _ide_models.php file
-
command
next-ide-helper:factories
to generate Laravel 8 factories docblock : -
- method types
-
- magic relation methods
-
Models :
-
- attributes
-
- attributes from accessors
-
- attribute casting
-
- custom collection
-
- custom query builder
-
- relations
-
- query builder :
-
-
- where clauses from attributes
-
-
-
-
-
-
-
-
-
-
-
-
- where clauses from scopes
-
-
-
-
-
-
-
-
-
-
-
-
- type of result methods
-
-
-
-
-
-
-
-
-
-
-
-
- relations :
-
-
- mixin with related's query builder
-
-
-
-
-
-
-
-
-
-
-
-
- custom resolvers
-
Macros :
-
- generation of file with macros to provide auto-completion
-
Phpstorm Meta :
-
- generation of file with meta to provide auto-completion
-
Misc :
-
- custom bootstrapper