|
|
@@ -78,10 +78,10 @@ class Configure
|
|
|
* @param string|array $config The key to write, can be a dot notation value.
|
|
|
* Alternatively can be an array containing key(s) and value(s).
|
|
|
* @param mixed $value Value to set for var
|
|
|
- * @return void
|
|
|
+ * @return bool
|
|
|
* @link https://book.cakephp.org/3.0/en/development/configuration.html#writing-configuration-data
|
|
|
*/
|
|
|
- public static function write($config, $value = null): void
|
|
|
+ public static function write($config, $value = null): bool
|
|
|
{
|
|
|
if (!is_array($config)) {
|
|
|
$config = [$config => $value];
|
|
|
@@ -99,6 +99,8 @@ class Configure
|
|
|
ini_set('display_errors', $config['debug'] ? '1' : '0');
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/**
|