Barry vd. Heuvel
877f5ed0a7
Trim strings and bump reflection docblock ( #1721 )
...
* Update version restraint
* UPdate snapshots
* update strings
2025-07-17 08:20:10 +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
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
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
Wim Reckman and laravel-ide-helper
9f97f7cd5f
Refactor resolving of null information for custom casted attribute types ( #1330 )
...
* Refactor resolving of null information for custom casted attribute types
* composer fix-style
---------
Co-authored-by: laravel-ide-helper <[email protected] >
2023-02-20 09:29:48 +01:00
Bartlomiej Kwarcinski
81d5b223ff
Fix Castables issue #1312 ( #1388 )
...
* Return Castable class if failed to detect it from return types
* fix-style
* Add CHANGELOG.md entry
2023-02-04 14:56:40 +01:00
sforward and Simon Verwaard
dda200fd34
Add support for CastsInboundAttributes ( #1329 )
...
* Add support for CastsInboundAttributes
* Update changelog
Co-authored-by: Simon Verwaard <[email protected] >
2022-09-13 10:42:06 +02:00
BinotaLIU
2673bf4889
return mixed if we failed detect castable type ( #1306 )
...
fixed #1305
2022-01-24 21:39:17 +01:00
BinotaLIU
744a9cf380
support Castables ( #1287 )
2022-01-09 18:52:15 +01:00
Silvan Krähenbühl
a091b9c94a
Allow casts without property ( #1267 )
...
* Allow casts without property
* Update changelog
2021-10-25 13:45:30 +02:00
Barry vd. Heuvel
113545bc1a
Fix snapshot
2020-12-04 09:25:31 +01:00
Matthew Hailwood
b3a79fe6c1
Allow casts with a return type of static or this to reference themselves ( #1103 )
...
* Allow casts with a return type of static or this to reference themselves
Supports
```php
/**
* @param $model
* @param string $key
* @param $value
* @param array $attributes
* @return static
*/
public function get($model, string $key, $value, array $attributes)
{
return new static($value);
}
```
or
```php
/**
* @param $model
* @param string $key
* @param $value
* @param array $attributes
* @return $this
*/
public function get($model, string $key, $value, array $attributes)
{
return new static($value);
}
```
* Update CHANGELOG.md
2020-12-04 07:33:45 +01:00
Artem Kryukov and Markus Podar
186340bedc
Fix phpdoc generate for custom cast with parameter ( #986 )
...
* Fix phpdoc generate for custom cast with parameter
* Add param for cast
* Simplify cast class name normalizing
Co-authored-by: Markus Podar <[email protected] >
* Update changelog
* composer fix-style
Co-authored-by: Markus Podar <[email protected] >
2020-09-07 22:39:35 +02:00
Barry vd. Heuvel
9599cfbbc9
Simplify test by mocking filesystem always ( #1019 )
2020-08-25 17:43:39 +02:00
Markus Podar
ba95d18ef5
[PHPCS] Extend to check/fix all source code and turn GHA into auto-commit fixer ( #1003 )
...
* phpcs: enable also for config, resources and tests
* composer fix-style
* vendor/bin/phpunit -d --update-snapshots
* gha: instead of checking the style, fix and auto-commit it 💪
2020-08-10 10:22:48 +02:00
07d45d2d7a
switch tests to snapshot assertions ( #958 )
...
* install spatie/phpunit-snapshot-assertions
* switch GenerateBasicPhpdocFinal test to snapshot assertion
* use v3 of spatie/phpunit-snapshot-assertions to be PHP7.2 compatible
* add txt snapshot driver
* fix EloquentCommandTest
* replace all heredocs by snapshots
* make test compatible with old/deprecated versions
* Update composer.json
* normalize composer.json
* fix merge conflict
* Allow older snapshot versions
* normalize composer.json
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: barryvdh <[email protected] >
2020-06-24 11:11:35 +02:00