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