Skip to content

Commit

Permalink
Merge e112e5d into 61c4710
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Sep 26, 2020
2 parents 61c4710 + e112e5d commit ef1a381
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/Phinx/Db/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ public function executeActions(Table $table, array $actions);
public function getQueryBuilder();

/**
* Executes a SQL statement and returns the result as an array.
* Executes a SQL statement.
*
* The return type depends on the underlying adapter being used.
*
* @param string $sql SQL
*
Expand Down
9 changes: 5 additions & 4 deletions src/Phinx/Migration/MigrationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ public function isMigratingUp();
public function execute($sql);

/**
* Executes a SQL statement and returns the result as an array.
* Executes a SQL statement.
*
* To improve IDE auto-completion possibility, you can overwrite the query method
* phpDoc in your (typically custom abstract parent) migration class, where you can set
* the return type by the adapter in your current use.
* The return type depends on the underlying adapter being used. To improve
* IDE auto-completion possibility, you can overwrite the query method
* phpDoc in your (typically custom abstract parent) migration class, where
* you can set the return type by the adapter in your current use.
*
* @param string $sql SQL
*
Expand Down
9 changes: 7 additions & 2 deletions src/Phinx/Seed/SeedInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,16 @@ public function getName();
public function execute($sql);

/**
* Executes a SQL statement and returns the result as an array.
* Executes a SQL statement.
*
* The return type depends on the underlying adapter being used. To improve
* IDE auto-completion possibility, you can overwrite the query method
* phpDoc in your (typically custom abstract parent) seed class, where
* you can set the return type by the adapter in your current use.
*
* @param string $sql SQL
*
* @return array
* @return mixed
*/
public function query($sql);

Expand Down

0 comments on commit ef1a381

Please sign in to comment.