Skip to content

Commit af8ac1b

Browse files
authored
[7.x] Adjust CastAttributes and CastsInboundAttributes set method return type (#34163)
1 parent 05b785d commit af8ac1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Contracts/Database/Eloquent/CastsAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function get($model, string $key, $value, array $attributes);
2222
* @param string $key
2323
* @param mixed $value
2424
* @param array $attributes
25-
* @return array|string|null
25+
* @return mixed
2626
*/
2727
public function set($model, string $key, $value, array $attributes);
2828
}

src/Illuminate/Contracts/Database/Eloquent/CastsInboundAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface CastsInboundAttributes
1111
* @param string $key
1212
* @param mixed $value
1313
* @param array $attributes
14-
* @return array
14+
* @return mixed
1515
*/
1616
public function set($model, string $key, $value, array $attributes);
1717
}

0 commit comments

Comments
 (0)