Remove void return type, not avail till PHP 7.1

This commit is contained in:
mattpass
2020-10-26 16:44:35 +00:00
parent 1ccf01bfc0
commit 0b75351b1f
3 changed files with 14 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ class System
/**
* @param $path
*/
private function createDirIfNotExists($path): void
private function createDirIfNotExists($path)
{
if (false === file_exists($path)) {
mkdir($path);
@@ -26,7 +26,7 @@ class System
}
}
public function setErrorHandling(): void
public function setErrorHandling()
{
// Don't display, but log all errors
ini_set('display_errors', '0');
@@ -41,7 +41,7 @@ class System
* @param $file
* @param $msg
*/
public function writeLog($file, $msg): void
public function writeLog($file, $msg)
{
$this->createDirIfNotExists(dirname(__FILE__) . '/../data/logs');
$this->createDirIfNotExists(dirname(__FILE__) . '/../data/logs/processes');
@@ -50,7 +50,7 @@ class System
fclose($fh);
}
public function setTimeZone(): void
public function setTimeZone()
{
// Set our default timezone and suppress warning with @
@date_default_timezone_set(date_default_timezone_get());
@@ -74,7 +74,7 @@ class System
/**
* @param $path
*/
public function invalidateOPCache($path): void
public function invalidateOPCache($path)
{
if (function_exists('opcache_invalidate')) {
opcache_invalidate($path, true);