Merge pull request #1093 from PrivateBin/php82-deprecation

fix PHP 8.2 ${var} string interpolation deprecation
This commit is contained in:
El RIDO 2023-07-05 04:23:52 +00:00 committed by GitHub
commit 6c2d7431fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ EOT, PHP_EOL;
$counters['total'] < 1000 ? 4 : 10
);
echo "Total:\t\t\t${counters['total']}", PHP_EOL;
echo "Total:\t\t\t{$counters['total']}", PHP_EOL;
foreach ($ids as $pasteid) {
$paste = $this->_store->read($pasteid);
++$counters['progress'];
@ -264,15 +264,15 @@ EOT, PHP_EOL;
}
echo PHP_EOL, <<<EOT
Expired:\t\t${counters['expired']}
Burn after reading:\t${counters['burn']}
Discussions:\t\t${counters['discussion']}
Plain Text:\t\t${counters['plain']}
Source Code:\t\t${counters['syntax']}
Markdown:\t\t${counters['md']}
Expired:\t\t{$counters['expired']}
Burn after reading:\t{$counters['burn']}
Discussions:\t\t{$counters['discussion']}
Plain Text:\t\t{$counters['plain']}
Source Code:\t\t{$counters['syntax']}
Markdown:\t\t{$counters['md']}
EOT, PHP_EOL;
if ($counters['unknown'] > 0) {
echo "Unknown format:\t\t${counters['unknown']}", PHP_EOL;
echo "Unknown format:\t\t{$counters['unknown']}", PHP_EOL;
}
}
@ -315,4 +315,4 @@ EOT, PHP_EOL;
}
}
new Administration();
new Administration();