diff --git a/DataStorage/DataStoragePoolInterface.php b/DataStorage/DataStoragePoolInterface.php index bc3bd597f..d55c14d72 100644 --- a/DataStorage/DataStoragePoolInterface.php +++ b/DataStorage/DataStoragePoolInterface.php @@ -44,7 +44,7 @@ interface DataStoragePoolInterface * * @param string $key Connection key * - * @return mixed + * @return DataStorageConnectionInterface * * @since 1.0.0 */ diff --git a/DataStorage/Database/GrammarAbstract.php b/DataStorage/Database/GrammarAbstract.php index ecd7c91c0..c55d09abe 100644 --- a/DataStorage/Database/GrammarAbstract.php +++ b/DataStorage/Database/GrammarAbstract.php @@ -225,20 +225,20 @@ abstract class GrammarAbstract * * A system is a table, a sub query or special keyword. * - * @param array|string $system System - * @param string $prefix Prefix for table + * @param string $system System + * @param string $prefix Prefix for table * * @return string * * @since 1.0.0 */ - protected function compileSystem($system, string $prefix = '') : string + protected function compileSystem(string $system, string $prefix = '') : string { // todo: this is a bad way to handle select count(*) which doesn't need a prefix. Maybe remove prefixes in total? $identifier = $this->systemIdentifier; foreach ($this->specialKeywords as $keyword) { - if (strrpos($system, $keyword, -strlen($system)) !== false) { + if (\strrpos($system, $keyword, -\strlen($system)) !== false) { $prefix = ''; $identifier = ''; }