fix stan errors
This commit is contained in:
@@ -18,7 +18,7 @@ class NovaForm
|
||||
/**
|
||||
* Fill attribute
|
||||
*/
|
||||
public static function fillAttribute($key, $value): Closure
|
||||
public static function fillAttribute(string $key, string $value): Closure
|
||||
{
|
||||
return function ($request, $model, $attribute, $requestAttribute) use ($key, $value) {
|
||||
$model->{$key} = $request->input($value);
|
||||
@@ -28,7 +28,7 @@ class NovaForm
|
||||
/**
|
||||
* Fill schemaless
|
||||
*/
|
||||
public static function fillSchemalessField($schemalessAttribute = 'options'): Closure
|
||||
public static function fillSchemalessField(string $schemalessAttribute = 'options'): Closure
|
||||
{
|
||||
return function ($request, $model, $attribute, $requestAttribute) use ($schemalessAttribute) {
|
||||
$model->{$schemalessAttribute}->set($attribute, $request->input($attribute));
|
||||
@@ -47,6 +47,9 @@ class NovaForm
|
||||
|
||||
/**
|
||||
* Fill the slug field
|
||||
*
|
||||
* @param string|array<int|string, string> $from
|
||||
* @param string $resource
|
||||
*/
|
||||
public static function fillSlug(string|array $from, ?string $resource): Closure
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user