Skip to content

Commit

Permalink
Added a missing [] for get_row 2nd parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelLaffineur committed May 30, 2022
1 parent b6462f8 commit 5cd9c52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Skeleton/Database/Driver/Mysqli/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private function get_statement($query, $params = []) {
* @return array $result The resulting associative array
* @throws Exception Throws an Exception when there is more than one row in a resultset
*/
public function get_row($query, $params) {
public function get_row($query, $params = []) {
$statement = $this->get_statement($query, $params);
$statement->execute();

Expand Down
2 changes: 1 addition & 1 deletion lib/Skeleton/Database/Driver/Pdo/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ private function get_statement($query, $params = []) {
* @return array $result The resulting associative array
* @throws Exception Throws an Exception when there is more than one row in a resultset
*/
public function get_row($query, $params) {
public function get_row($query, $params = []) {
$statement = $this->get_statement($query, $params);
$statement->execute();

Expand Down
2 changes: 1 addition & 1 deletion lib/Skeleton/Database/Driver/ProxyBaseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function get_one($query, $params = []);
* @return array $result The resulting associative array
* @throws Exception Throws an Exception when there is more than one row in a resultset
*/
public function get_row($query, $params);
public function get_row($query, $params = []);

/**
* Get the first column of the resultset
Expand Down

0 comments on commit 5cd9c52

Please sign in to comment.