Skip to content

Commit ef7eb42

Browse files
authored
Update Describe params to be optional (#53)
when using the array format to describe the config, allow all of the array keys to be optional so that you don't have to define them all just to pass static analysis.
1 parent 5bf71a6 commit ef7eb42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Describe.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ class Describe
219219
* }
220220
* ```
221221
*
222-
* @param string|array{'from': string,'pre': string|string[], 'cast': string|string[], 'post': string|string[], 'required': bool, 'default': mixed, 'nullable': bool,
223-
* 'ignore': bool, 'via': string}|null $attributes
222+
* @param string|array{'from'?: string, 'pre'?: string|string[], 'cast'?: string|string[], 'post'?: string|string[], 'required'?: bool, 'default'?: mixed, 'nullable'?: bool,
223+
* 'ignore'?: bool, 'via'?: string}|null $attributes
224224
*
225225
* @link https://github.com/zero-to-prod/data-model
226226
*
@@ -312,4 +312,4 @@ public function __construct(string|null|array $attributes = null)
312312
}
313313
}
314314
}
315-
}
315+
}

0 commit comments

Comments
 (0)