Framework Update

This commit is contained in:
2024-01-31 22:15:08 +08:00
parent b5ff5e8b5f
commit 20678a6a0c
1459 changed files with 25954 additions and 16153 deletions
+1 -2
View File
@@ -8,8 +8,7 @@ interface Castable
* Get the name of the caster class to use when casting from / to this cast target.
*
* @param array $arguments
* @return string
* @return string|\Illuminate\Contracts\Database\Eloquent\CastsAttributes|\Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes
* @return class-string<CastsAttributes|CastsInboundAttributes>|CastsAttributes|CastsInboundAttributes
*/
public static function castUsing(array $arguments);
}
@@ -2,6 +2,10 @@
namespace Illuminate\Contracts\Database\Eloquent;
/**
* @template TGet
* @template TSet
*/
interface CastsAttributes
{
/**
@@ -11,7 +15,7 @@ interface CastsAttributes
* @param string $key
* @param mixed $value
* @param array $attributes
* @return mixed
* @return TGet|null
*/
public function get($model, string $key, $value, array $attributes);
@@ -20,7 +24,7 @@ interface CastsAttributes
*
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param TSet|null $value
* @param array $attributes
* @return mixed
*/