Skip to content

Commit 23a4fb8

Browse files
committed
docs: fix PHPDoc types
1 parent ce61ae5 commit 23a4fb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

system/Database/DataConverter/DataConverter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ public function toDatabase(array $phpData): array
107107
* Add ? at the beginning of $type (i.e. ?string) to get `null`
108108
* instead of casting $value if ($value === null).
109109
*
110-
* @param bool|float|int|string|null $value The value to convert
111-
* @param string $column The column name
112-
* @param string $method Allowed to "fromDatabase" and "toDatabase"
110+
* @param mixed $value The value to convert
111+
* @param string $column The column name
112+
* @param string $method Allowed to "fromDatabase" and "toDatabase"
113113
* @phpstan-param 'fromDatabase'|'toDatabase' $method
114114
*
115-
* @return array|bool|float|int|object|string|null
115+
* @return mixed
116116
*/
117117
protected function castAs($value, string $column, string $method = 'fromDatabase')
118118
{

0 commit comments

Comments
 (0)