Fix more type bugs

This commit is contained in:
Dennis Eichhorn 2018-07-14 14:41:15 +02:00
parent 39f299e211
commit 0614c12eef
2 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ interface DataStoragePoolInterface
*
* @param string $key Connection key
*
* @return mixed
* @return DataStorageConnectionInterface
*
* @since 1.0.0
*/

View File

@ -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 = '';
}