Skip to content

Commit 2f3cc3d

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
2 parents 0cab3e5 + e05781b commit 2f3cc3d

File tree

5 files changed

+398
-48
lines changed

5 files changed

+398
-48
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"phpunit/phpcov": "^8.2",
3333
"phpunit/phpunit": "^9.1",
3434
"predis/predis": "^1.1 || ^2.0",
35-
"rector/rector": "1.0.3",
35+
"rector/rector": "1.0.4",
3636
"vimeo/psalm": "^5.0"
3737
},
3838
"replace": {

system/Database/BaseResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ public function getResultObject(): array
262262
* @param string $type The type of result object. 'array', 'object' or class name.
263263
* @phpstan-param class-string<T>|'array'|'object' $type
264264
*
265-
* @return array|object|stdClass|null
266-
* @phpstan-return ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : T|null))
265+
* @return array|float|int|object|stdClass|string|null
266+
* @phpstan-return ($n is string ? float|int|string|null : ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : T|null)))
267267
*/
268268
public function getRow($n = 0, string $type = 'object')
269269
{

system/Database/ResultInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public function getResultObject(): array;
6565
* @param string $type The type of result object. 'array', 'object' or class name.
6666
* @phpstan-param class-string<T>|'array'|'object' $type
6767
*
68-
* @return array|object|stdClass|null
69-
* @phpstan-return ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : T|null))
68+
* @return array|float|int|object|stdClass|string|null
69+
* @phpstan-return ($n is string ? float|int|string|null : ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : T|null)))
7070
*/
7171
public function getRow($n = 0, string $type = 'object');
7272

0 commit comments

Comments
 (0)