Skip to content

Commit b45760f

Browse files
committed
docs: add @phpstan-return
1 parent 555b7ca commit b45760f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

system/Database/BaseConnection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ abstract public function affectedRows(): int;
12351235
* @param array|bool|float|int|object|string|null $str
12361236
*
12371237
* @return array|float|int|string
1238+
* @phpstan-return ($str is array ? array : float|int|string)
12381239
*/
12391240
public function escape($str)
12401241
{

system/Database/ConnectionInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function getLastQuery();
134134
* @param array|bool|float|int|object|string|null $str
135135
*
136136
* @return array|float|int|string
137+
* @phpstan-return ($str is array ? array : float|int|string)
137138
*/
138139
public function escape($str);
139140

system/Database/Postgre/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public function affectedRows(): int
172172
* @param array|bool|float|int|object|string|null $str
173173
*
174174
* @return array|float|int|string
175+
* @phpstan-return ($str is array ? array : float|int|string)
175176
*/
176177
public function escape($str)
177178
{

0 commit comments

Comments
 (0)