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
Markus Podar and Barry vd. Heuvel
49ac75d805
Remove --smart-reset completely ( #1525 )
...
* Remove `--smart-reset` completely
See https://github.com/barryvdh/laravel-ide-helper/pull/1523#issuecomment-1952313183
* Update CHANGELOG.md
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-02-19 14:03:16 +01:00
Barry vd. Heuvel
02af2a278a
Merge reset/smart reset, don't set class ( #1523 )
...
* Merge reset/smart reset, don't set class
* Add changelog
2024-02-19 12:59:22 +01:00
Barry vd. Heuvel
d7ed749f3e
Use int/bool instead of longer variant ( #1524 )
...
* Use int/bool instead of longer variant
* Add changelog
* Update snapshots
2024-02-19 12:39:07 +01:00
Markus Podar
9af62e243d
Bump minimum PHP version to 8.1 & misc maintenance ( #1521 )
...
* Bump minimum PHP version to 8.1
Laravel 10 doesn't support 8.0 anyway
* Remove phpunit 9
* gha: remove unused matrix dimension
* gha: bump runner os
* tests: remove outdated version checks
2024-02-17 22:08:15 +01:00
05259b695d
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] >
2024-02-17 11:32:56 +01:00
Barry vd. Heuvel
8bfe918f65
Update CHANGELOG.md
2024-02-17 11:27:21 +01:00
6579c0332b
Remove doctrine ( #1512 )
...
* Remove doctrine
* Fix tests
* normalize composer.json
* Add back platform
* Bump integration versions
* composer fix-style
* Fix stability
* Bump minimum to 10.36
* Bump minimum to 10.38
* More types
* Fast fail off
* Bump docblock
* composer fix-style
* add bpchar
* Use match for type detection
Co-authored-by: Hafez Divandari <[email protected] >
* Use driverName
Co-authored-by: Hafez Divandari <[email protected] >
* fix match
* TWeak types
* Update snapshots
* Remove testbench 7
* composer fix-style
* Update src/Console/ModelsCommand.php
Co-authored-by: Hafez Divandari <[email protected] >
* Update src/Console/ModelsCommand.php
Co-authored-by: Hafez Divandari <[email protected] >
* Tweak bool
* Update src/Console/ModelsCommand.php
Co-authored-by: Hafez Divandari <[email protected] >
* composer fix-style
* Remove custom types, default to string
---------
Co-authored-by: barryvdh <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
Co-authored-by: Hafez Divandari <[email protected] >
2024-02-17 11:12:12 +01:00
Barry vd. Heuvel
ed39977a30
Switch to 3.0 tag ( #1519 )
2024-02-17 11:11:50 +01:00
Markus Podar
bcc233280b
[TEST] Show that custom phpdoc tags without space afterwards are unexpectedly changed ( #981 )
...
* tests: show that custom phpdoc tags without space afterwards are unexpectedly changed
This adds a test for the (current bug) behaviour of https://github.com/barryvdh/laravel-ide-helper/issues/666
If this ever gets fixed, this fails and needs to be adapted,
ensuring it won't break again.
* test: adapt now that #666 has been fixed
2024-02-16 21:38:43 +01:00
Barry vd. Heuvel
77831852bb
Fix final class keyword ( #1517 )
...
* Fix final class keyword
* Add changelog
v2.15.1
2024-02-15 15:23:20 +01:00
Markus Podar
b47a118300
Adjust gitattribute ( #1515 )
...
and make up for the missing php-cs-fixer changes
The rest of the changes is just:
- sorted alphabetically
- align the `export-ignore` column
2024-02-14 14:49:24 +01:00
Barry vd. Heuvel and Markus Podar
dca3ebe81e
Prepare 2.15 release ( #1514 )
...
* Prepare 2.15 release
* Prepare 2.15 release
* Add missing CHANGELOG.md entries
---------
Co-authored-by: Markus Podar <[email protected] >
v2.15.0
2024-02-14 12:19:26 +01:00
Barry vd. Heuvel
c119e89cf0
CS
2024-02-08 11:11:51 +01:00
GeoSot
bc158a1b86
Add AllowDynamicProperties Attribute to cooperate with php8.2 deprecation ( #1428 )
...
* Add `AllowDynamicProperties` Attribute to cooperate with php8.2 deprecation
* lint snapshot
2024-02-08 11:09:30 +01:00
341c0ab89f
feat: add support for AsCollection and AsArrayObject casts ( #1393 )
...
* feat: add support for AsCollection and AsArrayObject casts
* update changelog
* improve tests
* remove change
* composer fix-style
* snapshot
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
2024-02-08 10:59:02 +01:00
Menthol
cee441c87c
Fix #1300 relation_return_type must take precedence if it is defined ( #1394 )
2024-02-08 09:48:26 +01:00
Barry vd. Heuvel
9343d3a1cc
CS
2024-02-08 09:41:24 +01:00
f12d933ab1
Add support for non type-hinted attribute accessors with no backed property ( #1411 )
...
* Read Attribute type from parameter
* Update CHANGELOG.md
* Update ModelsCommand.php
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-02-08 09:39:10 +01:00
Norman Huth
4751420c9e
Accept scope & scopes as relation ( #1452 )
2024-02-08 09:20:47 +01:00
Caleb White
6115100a0f
Add support for composite keys ( #1479 )
...
* Add support for composite keys
* chore: add composite foreign key test
2024-02-08 07:42:27 +01:00
Sven
5c886fb653
Support the BINARY(...) database field type ( #1434 )
...
In singlestore we define some strings as
$table->char($columnName, 40)->charset('binary')->collation('binary');
In singelstore, this becomes 'BINARY(40)' instead of 'CHAR(40) CHARACTER SET 'binary' COLLATE 'binary'
This change would allow the generated proeperties to be 'string' instead of 'mixed', as using a string is correct in this case.
2024-02-07 22:01:48 +01:00
Barry vd. Heuvel
7d69dc6ea0
CS
2024-02-07 21:58:39 +01:00
Ben Poulson
62fc436c4c
Reintroduce support for multi-db setups ( #1426 )
...
This snipet was lost in the 2.12.x => 2.13.x change. Needs to be reintroduced to allow those who use fully qualified db+table names. (Eg, `database.table`)
2024-02-07 21:55:16 +01:00
409bbf665b
Fix unsetMethod in ModelsCommand ( #1453 )
...
* Fix unsetMethod in ModelsCommand
* composer fix-style
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
2024-02-07 21:48:09 +01:00
Barry vd. Heuvel
2535f8e6ab
Fix tests and CS
2024-02-07 21:44:48 +01:00
James Bhatta
16548fc878
Update README.md ( #1451 )
...
Fix intra page link for PHPDocs for models
2024-02-07 21:40:24 +01:00
Barry vd. Heuvel
872b470d9b
Update CHANGELOG.md
2024-02-07 21:37:51 +01:00