Skip to content

Commit d130f35

Browse files
authored
Merge pull request #13 from BaguettePHP/feature/replace-abstract-method
Replace abstract method for PHP 5
2 parents 7a6e8ba + 42e23bd commit d130f35

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-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
}

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
* @license https://github.com/BaguettePHP/TetoSQL/blob/master/LICENSE MPL-2.0
99
*/
1010
require_once dirname(__DIR__) . '/vendor/autoload.php';
11+
12+
error_reporting(E_ALL | E_STRICT);

0 commit comments

Comments
 (0)