Skip to content

Commit c29ae06

Browse files
committed
removed support for PHP 5.3
1 parent 5c12606 commit c29ae06

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Bridges/DatabaseTracy/ConnectionPanel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function logQuery(Nette\Database\Connection $connection, $result)
5555
$this->count++;
5656

5757
$source = NULL;
58-
$trace = $result instanceof \PDOException ? $result->getTrace() : debug_backtrace(PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_IGNORE_ARGS : FALSE);
58+
$trace = $result instanceof \PDOException ? $result->getTrace() : debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
5959
foreach ($trace as $row) {
6060
if (isset($row['file']) && is_file($row['file']) && !Tracy\Debugger::getBluescreen()->isCollapsed($row['file'])) {
6161
if ((isset($row['function']) && strpos($row['function'], 'call_user_func') === 0)

src/Database/Helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function dumpSql($sql, array $params = NULL, Connection $connectio
120120

121121
} elseif (is_string($param)) {
122122
$length = Nette\Utils\Strings::length($param);
123-
$truncated = Nette\Utils\Strings::truncate($param, Helpers::$maxLength);
123+
$truncated = Nette\Utils\Strings::truncate($param, self::$maxLength);
124124
$text = htmlspecialchars($connection ? $connection->quote($truncated) : '\'' . $truncated . '\'', ENT_NOQUOTES, 'UTF-8');
125125
return '<span title="Length ' . $length . ' characters">' . $text . '</span>';
126126

src/Database/Table/Selection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ protected function getGeneralCacheKey()
610610
$key = [__CLASS__, $this->name, $this->sqlBuilder->getConditions()];
611611
if (!$this->generalCacheTraceKey) {
612612
$trace = [];
613-
foreach (debug_backtrace(PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_IGNORE_ARGS : FALSE) as $item) {
613+
foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) as $item) {
614614
$trace[] = isset($item['file'], $item['line']) ? $item['file'] . $item['line'] : NULL;
615615
};
616616
$this->generalCacheTraceKey = $trace;

0 commit comments

Comments
 (0)