@@ -51,19 +51,27 @@ public function __construct(bool $convertEmptyStringToNull, bool $rightTrimStrin
51
51
}
52
52
53
53
/**
54
- * @param non-empty- list<mixed>|false $row
54
+ * @param list<mixed>|false $row
55
55
*
56
- * @return non-empty-list<mixed>|false
56
+ * @return list<mixed>|false
57
+ * @psalm-return (
58
+ * $row is non-empty-list<mixed> ? non-empty-list<mixed> :
59
+ * ($row is list<mixed> ? list<mixed> : false)
60
+ * )
57
61
*/
58
62
public function convertNumeric (array |false $ row ): array |false
59
63
{
60
64
return ($ this ->convertNumeric )($ row );
61
65
}
62
66
63
67
/**
64
- * @param non-empty- array<string,mixed>|false $row
68
+ * @param array<string, mixed>|false $row
65
69
*
66
- * @return non-empty-array<string, mixed>|false
70
+ * @return array<string, mixed>|false
71
+ * @psalm-return (
72
+ * $row is non-empty-array<string, mixed> ? non-empty-array<string, mixed> :
73
+ * ($row is array<string, mixed> ? array<string, mixed> : false)
74
+ * )
67
75
*/
68
76
public function convertAssociative (array |false $ row ): array |false
69
77
{
@@ -76,19 +84,29 @@ public function convertOne(mixed $value): mixed
76
84
}
77
85
78
86
/**
79
- * @param list<non-empty- list<mixed>> $data
87
+ * @param list<list<mixed>> $data
80
88
*
81
- * @return list<non-empty-list<mixed>>
89
+ * @return list<list<mixed>>
90
+ * @psalm-return (
91
+ * $data is list<non-empty-list<mixed>>
92
+ * ? list<non-empty-list<mixed>>
93
+ * : list<list<mixed>>
94
+ * )
82
95
*/
83
96
public function convertAllNumeric (array $ data ): array
84
97
{
85
98
return ($ this ->convertAllNumeric )($ data );
86
99
}
87
100
88
101
/**
89
- * @param list<non-empty- array<string,mixed>> $data
102
+ * @param list<array<string,mixed>> $data
90
103
*
91
- * @return list<non-empty-array<string,mixed>>
104
+ * @return list<array<string,mixed>>
105
+ * @psalm-return (
106
+ * $data is list<non-empty-array<string,mixed>>
107
+ * ? list<non-empty-array<string,mixed>>
108
+ * : list<array<string,mixed>>
109
+ * )
92
110
*/
93
111
public function convertAllAssociative (array $ data ): array
94
112
{
0 commit comments