File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -254,14 +254,16 @@ public function getResultObject(): array
254
254
*
255
255
* If row doesn't exist, returns null.
256
256
*
257
- * @param int $n The index of the results to return
258
- * @param string $type The type of result object. 'array', 'object' or class name.
257
+ * @param int|string $n The index of the results to return, or column name
258
+ * @param string $type The type of result object. 'array', 'object' or class name.
259
+ * @phpstan-param class-string|'array'|'object' $type
259
260
*
260
261
* @return array|object|stdClass|null
261
262
* @phpstan-return ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : object|null))
262
263
*/
263
264
public function getRow ($ n = 0 , string $ type = 'object ' )
264
265
{
266
+ // $n is a column name.
265
267
if (! is_numeric ($ n )) {
266
268
// We cache the row data for subsequent uses
267
269
if (! is_array ($ this ->rowData )) {
Original file line number Diff line number Diff line change @@ -731,7 +731,7 @@ public function setHeader($header, $value)
731
731
}
732
732
733
733
/**
734
- * @param string $email
734
+ * @param array| string $email
735
735
*
736
736
* @return array
737
737
*/
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function getFile(string $name)
77
77
/**
78
78
* Verify if a file exist in the collection of uploaded files and is have been uploaded with multiple option.
79
79
*
80
- * @return array |null
80
+ * @return list<UploadedFile> |null
81
81
*/
82
82
public function getFileMultiple (string $ name )
83
83
{
@@ -245,7 +245,7 @@ protected function fixFilesArray(array $data): array
245
245
* @param array $index The index sequence we are navigating down
246
246
* @param array $value The portion of the array to process
247
247
*
248
- * @return UploadedFile|null
248
+ * @return list<UploadedFile>| UploadedFile|null
249
249
*/
250
250
protected function getValueDotNotationSyntax (array $ index , array $ value )
251
251
{
You can’t perform that action at this time.
0 commit comments