Skip to content

Commit 17a4b32

Browse files
committed
Restore PHP 5.4 compatibility with AdminNeo
1 parent 2d908bd commit 17a4b32

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

TracyDebugger.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function getModuleInfo() {
2727
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
2828
'author' => 'Adrian Jones',
2929
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
30-
'version' => '4.26.71',
30+
'version' => '4.26.72',
3131
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
3232
'singular' => true,
3333
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',

panels/Adminer/plugins/ProcessWirePlugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct() {
1818

1919
}
2020

21-
public function printToHead(): void {
21+
public function printToHead() {
2222
?>
2323
<style>
2424
.download-btn {
@@ -281,11 +281,11 @@ function showFile(index) {
281281
}
282282

283283

284-
public function getDatabases($flush = true): array {
284+
public function getDatabases($flush = true) {
285285
return [wire('config')->dbName];
286286
}
287287

288-
public function formatSelectionValue(?string $val, ?string $link, ?array $field, ?string $original): ?string {
288+
public function formatSelectionValue($val, $link, $field, $original) {
289289

290290
// check if the current field is the pages_id column and store for use in other columns on the same row (ie to get image paths)
291291
static $pages_id = null;
@@ -462,11 +462,11 @@ public function formatSelectionValue(?string $val, ?string $link, ?array $field,
462462
return $val;
463463
}
464464

465-
public function formatMessageQuery(string $query, string $time, bool $failed = false) {
465+
public function formatMessageQuery($query, $time, $failed = false) {
466466
wire('log')->save('adminer_queries', $query);
467467
}
468468

469-
public function formatSqlCommandQuery(string $query) {
469+
public function formatSqlCommandQuery($query) {
470470
wire('log')->save('adminer_queries', $query);
471471
}
472472

0 commit comments

Comments
 (0)