Skip to content

Commit 42e23bd

Browse files
committed
Make AbstractStaticQuery non-abstract method for ignore PHP 5 strict error
1 parent 9221d9f commit 42e23bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/AbstractStaticQuery.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Teto\SQL;
44

5+
use LogicException;
6+
57
/**
68
* Abstract static class of safer SQL query builder by TetoSQL
79
*
@@ -32,5 +34,8 @@ public static function build($pdo, $sql, array $params)
3234
/**
3335
* @return QueryBuilder
3436
*/
35-
abstract protected static function getQueryBuilder();
37+
protected static function getQueryBuilder()
38+
{
39+
throw new LogicException('Must be implemented ' . __FUNCTION__ . ' method in ' . __CLASS__ . '.');
40+
}
3641
}

0 commit comments

Comments
 (0)