Barry vd. Heuvel and laravel-ide-helper
347483be03
Add option for only eloquent ( #1636 )
...
* Add option for only eloquent
* composer fix-style
* Add snapshot
* Add option to models command
* composer fix-style
* Fix namespace
---------
Co-authored-by: laravel-ide-helper <[email protected] >
2024-12-29 11:51:09 +01:00
Barry vd. Heuvel and laravel-ide-helper
14fdb572bb
Update testsuite for Generator, simplify service provider and mock ( #1635 )
...
* Add templates to Eloquent
* Test generator, update constructor
* composer fix-style
* Add filename test
* UPdate test
---------
Co-authored-by: laravel-ide-helper <[email protected] >
2024-12-28 19:56:36 +01:00
Barry vd. Heuvel
c33eacdefc
Add templates to Eloquent ( #1634 )
2024-12-28 11:17:17 +01:00
Yifans_Z and Yifan Zhao
a25b947851
fix: add @template TModel of static for Eloquent ( #1631 )
...
* fix: add @template TModel of static for Eloquent
* fix: use `===` instead of `==`
---------
Co-authored-by: Yifan Zhao <[email protected] >
2024-12-26 12:51:40 +01:00
barryvdh
59eb26742b
Update CHANGELOG
2024-12-18 08:36:48 +00:00
Lito
b7675670f7
Assign $output method parameter to $this->output on Generator ( #1623 )
...
The `$output` method parameter is not being assigned to the `$this->output` class variable.
v3.3.0
2024-12-18 09:24:19 +01:00
Jeppe Knockaert and laravel-ide-helper
edb56754d1
Fix PHP 8.4 deprecations ( #1618 )
...
* Replace implicitly nullable parameters for PHP 8.4
* composer fix-style
---------
Co-authored-by: laravel-ide-helper <[email protected] >
2024-12-14 11:06:34 +01:00
laravel-ide-helper
4d2728c4f0
composer fix-style
2024-12-09 15:03:45 +00:00
Lito
5da09fad67
Fixed PHP 8.4 deprecation warning ( #1622 )
...
* Fixed PHP 8.4 deprecation warning
* Fix PHP 8.4 deprecation warning
2024-12-09 16:03:20 +01:00
Bob Conan
788e72e7dd
Updated CHANGELOG.md, fix typo(s) ( #1613 )
2024-11-13 22:38:24 +01:00
Carl-Philipp Jung and laravel-ide-helper
e3ec773374
Improve replacement of return type for methods from Query\Builder ( #1575 )
...
* Add return type `|static` to Query\Builder methods (#1574 )
* Replace return type Query\Builder with Eloquent\Builder (#1574 )
* Replace return type Query\Builder only for facade Eloquent (#1574 )
* Add special return type replacement for Macros of \Eloquent
* Restrict special return type to methods from Eloquent\Builder and Query\Builder
* Do not overwrite return type in normalizeReturn() with conditional call of setType()
* Use generic return type for builder methods in \Eloquent
* composer fix-style
---------
Co-authored-by: laravel-ide-helper <[email protected] >
2024-10-31 15:47:27 +01:00
Barry vd. Heuvel
64588afe8b
Update snapshots
2024-10-31 15:39:02 +01:00
Jeramy Hing
472c1bad5d
Feature: Add Config Option to Enforce Nullable Relationships ( #1580 )
...
* feat: add config option for nullable relationships
Introduce enforce_nullable_relationships configuration to control nullable Eloquent relationships.
* refactor: update logic for nullable relationships
Update isRelationNullable method to respect new config option.
* test: add tests for nullable relationship config
- Verify behavior of enforce_nullable_relationships configuration option.
- Create snapshot to reflect enforce_nullable_relationships set to false.
* docs: improve documented context and usage
* docs: update CHANGELOG with enforce_nullable_relationships option
2024-10-30 22:35:58 +01:00
barryvdh
90e7c5ac47
Update CHANGELOG
2024-10-29 14:05:10 +00:00
Pieter Willekens and laravel-ide-helper
07e3bd8796
fix(pivot): only use unique classes in the pivot union ( Fixes #1606 ) ( #1607 )
...
* fix(pivot): only use unique classes in the pivot union (Fixes #1606 )
* composer fix-style
---------
Co-authored-by: laravel-ide-helper <[email protected] >
v3.2.2
2024-10-29 15:00:16 +01:00
Pieter Willekens
7c2fa01d36
docs(pr): remove the changelog checklist item ( #1608 )
2024-10-29 10:37:06 +01:00
Barry vd. Heuvel
75b05a9f74
Create release-drafter.yml
2024-10-28 15:17:58 +01:00
Barry vd. Heuvel
71aa6a6cf3
Create update-changelog.yaml ( #1605 )
...
* Create update-changelog.yaml
* Create release-drafter.yml
2024-10-28 15:16:33 +01:00
Barry vd. Heuvel
be806dc316
Update CHANGELOG.md
2024-10-28 15:11:38 +01:00
Ramon Dantas and Barry vd. Heuvel
800e2347a6
feat: use numeric type on fields with decimal casts ( #1583 )
...
* feat: use `numeric` type on fields with `decimal` casts
* docs: update CHANGELOG.md
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
v3.2.1
2024-10-28 12:32:31 +01:00
Barry vd. Heuvel
7549f58a30
Smarter reset ( #1603 )
...
* Smarter reset
* Changelog
* Fix phpdocs
2024-10-28 12:21:53 +01:00
Barry vd. Heuvel
7740b80704
Merge branch 'uno-sw-patch-1'
2024-10-28 11:54:48 +01:00
Barry vd. Heuvel
d6fb7907cc
Merge branch 'patch-1' of github.com:uno-sw/laravel-ide-helper into uno-sw-patch-1
2024-10-28 11:35:50 +01:00
Pieter Willekens and laravel-ide-helper
dc70337e48
feat(pivot): add support for multiple pivot types when using the same accessor ( #1597 )
...
* feat(pivot): add support for multiple pivot types when using the same accessor
* composer fix-style
* changelog
* resolve namespaces
* Revert "resolve namespaces"
This reverts commit 37559ab089 .
* resolve namespaces
---------
Co-authored-by: laravel-ide-helper <[email protected] >
2024-10-28 11:32:19 +01:00
KentarouTakeda
4b051e45c7
Fix the description of unused option ( #1600 )
2024-10-28 11:30:54 +01:00
Barry vd. Heuvel
7956ccb494
Bump dev alias to 3.2 ( #1596 )
v3.2.0-rc1
v3.2.0
2024-10-17 18:43:13 +02:00
Serhii Petrov and Barry vd. Heuvel
2acec73fdd
Test against php 8.4 ( #1592 )
...
* Test against php 8.4
* Test against php 8.4
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-10-17 18:39:39 +02:00
KentarouTakeda
085ca3e225
Compatible with Generics Eloquent Builder in Laravel 11.15 ( #1591 )
...
* feat: support generics eloquent builder
* fix: required laravel version
* fix: ci execution is only for Laravel-11
* docs: add CHANGELOG
* docs: update supported Laravel versions and adjust output examples
2024-10-17 18:37:19 +02:00
KentarouTakeda
ec61b82178
Fix upstream dependent test failure ( #1595 )
2024-10-17 18:35:28 +02:00
KentarouTakeda
d3965aaab5
fix: Model's --write duplicates array properties ( #1594 )
...
* Use the bug-fixed version of the upstream library
* Updated the test for fixed features to correctly expect
2024-10-17 18:34:58 +02:00
erikn69
4f588b9782
Fix badges ( #1576 )
2024-09-20 14:51:24 +02:00
khaled sadek
643329d23d
Fix type of hased model property ( #1579 )
...
* set hashed properity as string
* add to changelog
* add test
2024-08-07 09:29:14 +02:00
uno-sw
07719015b3
Update CHANGELOG.md
2024-08-02 13:28:07 +09:00
uno-sw
7d2ea97f25
Update test
2024-08-02 13:21:45 +09:00
uno-sw
51fb97b8fb
Add support for AsCollection::using and AsEnumCollection::of casts
2024-08-02 13:18:15 +09:00
Barry vd. Heuvel
591e7d665f
Update CHANGELOG.md ( #1570 )
v3.1.0
2024-07-12 16:20:51 +02:00
Barry vd. Heuvel
2dba19133c
Fix style again ( #1569 )
2024-07-12 16:16:37 +02:00
schrosis
001091e605
fix: unknown format PHPDoc ( #1538 )
2024-07-12 16:09:08 +02:00
Barry vd. Heuvel
ccac27c8cf
Bump dev alias to 3.1
2024-07-12 16:08:33 +02:00
f5759e2001
Add static to isBuiltin() check in ide-helper:models ( #1541 )
...
* Add `\\static` as check
For some reason, the `static` keyword as a return type, does not return `isBuiltin()` === true, so a `\\` is added. We need to manually add it to the built in check.
* Update ModelsCommand.php
* Add tests
* Add CHANGELOG.md entry
---------
Co-authored-by: Markus Podar <[email protected] >
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-07-12 16:08:08 +02:00
michal and Barry vd. Heuvel
f7a3dc8ff2
Add support in morphTo relationship for null values (1547) ( #1549 )
...
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-07-12 16:06:56 +02:00
Braunson Yager and Barry vd. Heuvel
672acce5ae
feat: add support for AsEnumCollection casts ( #1557 )
...
* Adding support for casting to AsEnumCollection
* Adding missing string to advanced_casts table for enum_collection
* Added to snapshots and ArrayCastsWithComment
* Update CHANGELOG.md
* Reverted automated whitespace, strict changes
* Updated test snapshots, tests passing
* Whitespace revert
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-07-12 16:03:57 +02:00
Benedikt Franke
67c00c0978
Improve config file ( #1564 )
...
* Improve config file
- Terminate all descriptions with a dot .
- Update outdated descriptions
- Add missing examples
* Fix capitalizations
2024-07-12 15:58:21 +02:00
Barry vd. Heuvel
a1573919c1
Update CHANGELOG.md
2024-07-12 15:56:03 +02:00
Markus Podar
0cf178aca9
composer fix-style ( #1558 )
2024-07-12 15:53:54 +02:00
c6509b658f
Improved attribute handling with types and Attribute support ( #1567 )
...
* Add `AllowDynamicProperties` Attribute to cooperate with php8.2 deprecation
* lint snapshot
* Fix collection attribute typing
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update composer.json
* Fix collectino with template types WIP
* Add `AllowDynamicProperties` Attribute to cooperate with php8.2 deprecation
* Fix collection attribute typing
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update composer.json
* composer fix-style
* Fix tests
* Fix tests
* composer fix-style
* Fix collectino with complex template types{
* Delete phpactor
* Install from scrumble repo
* Implemented correct attribute handling
* composer fix-style
* Revert "Install from scrumble repo"
This reverts commit 3f1057adb6 .
* Re-add barryvdh links
* Revert "Update composer.json"
This reverts commit 98252fe740 .
* Fix pivot test
* Correct CHANGELOG.md with attribute merge request
* More clear PhpDocTypeParser filename and clarified directory according to PSR12
---------
Co-authored-by: GeoSot <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
Co-authored-by: Luukdewaaier <[email protected] >
Co-authored-by: Luuk de Weijer <[email protected] >
2024-07-12 15:53:04 +02:00
sforward
6338abb2d7
Fix return value of scopes from parent class ( #1366 )
2024-04-01 08:43:59 +02:00
dev2a
ac7e186270
Add pivot class property ( #1518 )
...
* Add pivot class property
* Add test for pivot class properties
* Fix failed test for pivot class properties
* Update CHANGELOG.md
* Fix failed test
2024-03-11 14:37:15 +01:00
Barry vd. Heuvel
bc1d67f01c
Prepare 3.0 release ( #1530 )
...
* Prepare 3.0 release
* Update CHANGELOG.md
* Update CHANGELOG.md
v3.0.0
2024-03-01 13:53:18 +01:00
Markus Podar
8eab699835
phpunit --migrate-configuration ( #1526 )
2024-02-19 20:52:29 +01:00