mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2214 Cron : remove :void to keep compatibility with PHP < 7.1
see https://www.php.net/manual/fr/migration71.new-features.php#migration71.new-features.void-functions
This commit is contained in:
@@ -436,7 +436,7 @@ class SetupUtils
|
||||
*
|
||||
* @since 2.8.0 N°2214 replace SetupLog::Log calls by CheckResult::TRACE
|
||||
*/
|
||||
private static function CheckPhpVersion(array &$aResult): void {
|
||||
private static function CheckPhpVersion(array &$aResult) {
|
||||
$aResult[] = new CheckResult(CheckResult::TRACE, 'Info - CheckPHPVersion');
|
||||
$sPhpVersion = phpversion();
|
||||
|
||||
|
||||
@@ -343,11 +343,9 @@ function CronExec($oP, $bVerbose, $bDebug=false)
|
||||
/**
|
||||
* @param \WebPage $oP
|
||||
*/
|
||||
function CheckMaintenanceMode(Page $oP): void
|
||||
{
|
||||
function CheckMaintenanceMode(Page $oP) {
|
||||
// Verify files instead of reloading the full config each time
|
||||
if (file_exists(MAINTENANCE_MODE_FILE) || file_exists(READONLY_MODE_FILE))
|
||||
{
|
||||
if (file_exists(MAINTENANCE_MODE_FILE) || file_exists(READONLY_MODE_FILE)) {
|
||||
$oP->p("Maintenance detected, exiting");
|
||||
exit(EXIT_CODE_ERROR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user