Skip to content

Commit

Permalink
docs: update @param style
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 29, 2024
1 parent 029d118 commit 7199ac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/DataCaster/DataCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ public function setTypes(array $types): static
* Add ? at the beginning of $type (i.e. ?string) to get `null`
* instead of casting $value if ($value === null).
*
* @param mixed $value The value to convert
* @param string $field The field name
* @param string $method Allowed to "get" and "set"
* @param mixed $value The value to convert
* @param string $field The field name
* @param string $method Allowed to "get" and "set"
* @phpstan-param 'get'|'set' $method
*/
public function castAs(mixed $value, string $field, string $method = 'get'): mixed
Expand Down

0 comments on commit 7199ac4

Please sign in to comment.