Skip to content

Commit d24daec

Browse files
committed
MC-33857: Update AdapterInterface::fetchRow return type
1 parent ad516cc commit d24daec

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lib/internal/Magento/Framework/DB/Adapter/AdapterInterface.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface AdapterInterface
3636
const INSERT_ON_DUPLICATE = 1;
3737

3838
const INSERT_IGNORE = 2;
39-
39+
4040
/** Strategy for updating data in table. See https://dev.mysql.com/doc/refman/5.7/en/replace.html */
4141
const REPLACE = 4;
4242

@@ -258,7 +258,7 @@ public function renameTable($oldTableName, $newTableName, $schemaName = null);
258258
*
259259
* @param string $tableName
260260
* @param string $columnName
261-
* @param array|string $definition string specific or universal array DB Server definition
261+
* @param array|string $definition string specific or universal array DB Server definition
262262
* @param string $schemaName
263263
* @return \Magento\Framework\DB\Adapter\AdapterInterface
264264
*/
@@ -273,7 +273,7 @@ public function addColumn($tableName, $columnName, $definition, $schemaName = nu
273273
* @param string $oldColumnName
274274
* @param string $newColumnName
275275
* @param array|string $definition
276-
* @param boolean $flushData flush table statistic
276+
* @param boolean $flushData flush table statistic
277277
* @param string $schemaName
278278
* @return \Magento\Framework\DB\Adapter\AdapterInterface
279279
*/
@@ -323,8 +323,8 @@ public function tableColumnExists($tableName, $columnName, $schemaName = null);
323323
*
324324
* @param string $tableName
325325
* @param string $indexName
326-
* @param string|array $fields the table column name or array of ones
327-
* @param string $indexType the index type
326+
* @param string|array $fields the table column name or array of ones
327+
* @param string $indexType the index type
328328
* @param string $schemaName
329329
* @return \Zend_Db_Statement_Interface
330330
*/
@@ -468,7 +468,7 @@ public function insertMultiple($table, array $data);
468468
* array('value1', 'value2')
469469
*
470470
* @param string $table
471-
* @param string[] $columns the data array column map
471+
* @param string[] $columns the data array column map
472472
* @param array $data
473473
* @return int
474474
*/
@@ -550,7 +550,7 @@ public function fetchAll($sql, $bind = [], $fetchMode = null);
550550
* @param string|\Magento\Framework\DB\Select $sql An SQL SELECT statement.
551551
* @param mixed $bind Data to bind into SELECT placeholders.
552552
* @param mixed $fetchMode Override current fetch mode.
553-
* @return array
553+
* @return mixed Array, object, or scalar depending on fetch mode.
554554
*/
555555
public function fetchRow($sql, $bind = [], $fetchMode = null);
556556

@@ -750,7 +750,7 @@ public function saveDdlCache($tableCacheKey, $ddlType, $data);
750750
* Return false if cache does not exists
751751
*
752752
* @param string $tableCacheKey the table cache key
753-
* @param int $ddlType the DDL constant
753+
* @param int $ddlType the DDL constant
754754
* @return string|array|int|false
755755
*/
756756
public function loadDdlCache($tableCacheKey, $ddlType);
@@ -864,7 +864,7 @@ public function getGreatestSql(array $data);
864864
*
865865
* @see INTERVAL_* constants for $unit
866866
*
867-
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
867+
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
868868
* @param int $interval
869869
* @param string $unit
870870
* @return \Zend_Db_Expr
@@ -876,7 +876,7 @@ public function getDateAddSql($date, $interval, $unit);
876876
*
877877
* @see INTERVAL_* constants for $unit
878878
*
879-
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
879+
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
880880
* @param int|string $interval
881881
* @param string $unit
882882
* @return \Zend_Db_Expr
@@ -895,7 +895,7 @@ public function getDateSubSql($date, $interval, $unit);
895895
* %m Month, numeric (00..12)
896896
* %Y Year, numeric, four digits
897897
*
898-
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
898+
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
899899
* @param string $format
900900
* @return \Zend_Db_Expr
901901
*/
@@ -932,7 +932,7 @@ public function getStandardDeviationSql($expressionField);
932932
*
933933
* @see INTERVAL_* constants for $unit
934934
*
935-
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
935+
* @param \Zend_Db_Expr|string $date quoted field name or SQL statement
936936
* @param string $unit
937937
* @return \Zend_Db_Expr
938938
*/
@@ -951,9 +951,9 @@ public function getTableName($tableName);
951951
/**
952952
* Build a trigger name based on table name and trigger details
953953
*
954-
* @param string $tableName The table that is the subject of the trigger
955-
* @param string $time Either "before" or "after"
956-
* @param string $event The DB level event which activates the trigger, i.e. "update" or "insert"
954+
* @param string $tableName The table that is the subject of the trigger
955+
* @param string $time Either "before" or "after"
956+
* @param string $event The DB level event which activates the trigger, i.e. "update" or "insert"
957957
* @return string
958958
*/
959959
public function getTriggerName($tableName, $time, $event);
@@ -964,7 +964,7 @@ public function getTriggerName($tableName, $time, $event);
964964
* Check index name length and allowed symbols
965965
*
966966
* @param string $tableName
967-
* @param string|array $fields the columns list
967+
* @param string|array $fields the columns list
968968
* @param string $indexType
969969
* @return string
970970
*/

0 commit comments

Comments
 (0)