File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2596,7 +2596,7 @@ public function testThrowsWhenAccessingMissingAttributesWhichArePrimitiveCasts()
2596
2596
$ exceptionCount ++;
2597
2597
}
2598
2598
2599
- foreach ($ primitiveCasts as $ key => $ type ) {
2599
+ foreach ($ primitiveCasts as $ key => $ type ) {
2600
2600
try {
2601
2601
$ v = $ model ->{$ key };
2602
2602
} catch (MissingAttributeException ) {
@@ -3405,8 +3405,8 @@ public static function makePrimitiveCastsArray(): array
3405
3405
{
3406
3406
$ toReturn = [];
3407
3407
3408
- foreach (static ::$ primitiveCastTypes as $ index => $ primitiveCastType ) {
3409
- $ toReturn ['primitive_cast_ ' . $ index ] = $ primitiveCastType ;
3408
+ foreach (static ::$ primitiveCastTypes as $ index => $ primitiveCastType ) {
3409
+ $ toReturn ['primitive_cast_ ' . $ index ] = $ primitiveCastType ;
3410
3410
}
3411
3411
3412
3412
return $ toReturn ;
@@ -3419,13 +3419,14 @@ public function __construct(array $attributes = [])
3419
3419
$ this ->mergeCasts (self ::makePrimitiveCastsArray ());
3420
3420
}
3421
3421
3422
- public function getThisIsFineAttribute ($ value ) {
3422
+ public function getThisIsFineAttribute ($ value )
3423
+ {
3423
3424
return 'ok ' ;
3424
3425
}
3425
3426
3426
3427
public function thisIsAlsoFine (): Attribute
3427
3428
{
3428
- return Attribute::get (fn () => 'ok ' );
3429
+ return Attribute::get (fn () => 'ok ' );
3429
3430
}
3430
3431
}
3431
3432
You can’t perform that action at this time.
0 commit comments