Skip to content

Commit 22725a2

Browse files
committed
removed support for PHP 7
1 parent 2c6fcf1 commit 22725a2

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/Database/ResultSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(Connection $connection, string $queryString, array $
6363
if (substr($queryString, 0, 2) === '::') {
6464
$connection->getPdo()->{substr($queryString, 2)}();
6565
} elseif ($queryString !== null) {
66-
static $types = ['boolean' => PHP_VERSION < 70307 ? PDO::PARAM_INT : PDO::PARAM_BOOL, 'integer' => PDO::PARAM_INT,
66+
static $types = ['boolean' => PDO::PARAM_BOOL, 'integer' => PDO::PARAM_INT,
6767
'resource' => PDO::PARAM_LOB, 'NULL' => PDO::PARAM_NULL, ];
6868
$this->pdoStatement = $connection->getPdo()->prepare($queryString);
6969
foreach ($params as $key => $value) {

src/Database/Table/ActiveRow.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,7 @@ public function getTable(): Selection
5555

5656
public function __toString()
5757
{
58-
try {
59-
return (string) $this->getPrimary();
60-
} catch (\Throwable $e) {
61-
if (func_num_args() || PHP_VERSION_ID >= 70400) {
62-
throw $e;
63-
}
64-
trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
65-
return '';
66-
}
58+
return (string) $this->getPrimary();
6759
}
6860

6961

0 commit comments

Comments
 (0)