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
+17 -9
View File
@@ -10,9 +10,11 @@ interface Repository extends CacheInterface
/**
* Retrieve an item from the cache and delete it.
*
* @param string $key
* @param mixed $default
* @return mixed
* @template TCacheValue
*
* @param array|string $key
* @param TCacheValue|(\Closure(): TCacheValue) $default
* @return (TCacheValue is null ? mixed : TCacheValue)
*/
public function pull($key, $default = null);
@@ -66,28 +68,34 @@ interface Repository extends CacheInterface
/**
* Get an item from the cache, or execute the given Closure and store the result.
*
* @template TCacheValue
*
* @param string $key
* @param \DateTimeInterface|\DateInterval|int|null $ttl
* @param \Closure $callback
* @return mixed
* @param \Closure(): TCacheValue $callback
* @return TCacheValue
*/
public function remember($key, $ttl, Closure $callback);
/**
* Get an item from the cache, or execute the given Closure and store the result forever.
*
* @template TCacheValue
*
* @param string $key
* @param \Closure $callback
* @return mixed
* @param \Closure(): TCacheValue $callback
* @return TCacheValue
*/
public function sear($key, Closure $callback);
/**
* Get an item from the cache, or execute the given Closure and store the result forever.
*
* @template TCacheValue
*
* @param string $key
* @param \Closure $callback
* @return mixed
* @param \Closure(): TCacheValue $callback
* @return TCacheValue
*/
public function rememberForever($key, Closure $callback);
@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Console;
interface PromptsForMissingInput
{
//
}
+1 -1
View File
@@ -7,7 +7,7 @@ interface QueueingFactory extends Factory
/**
* Queue a cookie to send with the next response.
*
* @param array $parameters
* @param mixed ...$parameters
* @return void
*/
public function queue(...$parameters);
+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
*/
+1 -1
View File
@@ -64,7 +64,7 @@ interface Application extends Container
/**
* Get or check the current application environment.
*
* @param string|array $environments
* @param string|array ...$environments
* @return string|bool
*/
public function environment(...$environments);
+2 -2
View File
@@ -60,7 +60,7 @@ interface ResponseFactory
/**
* Create a new streamed response instance.
*
* @param \Closure $callback
* @param callable $callback
* @param int $status
* @param array $headers
* @return \Symfony\Component\HttpFoundation\StreamedResponse
@@ -70,7 +70,7 @@ interface ResponseFactory
/**
* Create a new streamed response instance as a file download.
*
* @param \Closure $callback
* @param callable $callback
* @param string|null $name
* @param array $headers
* @param string|null $disposition