mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-20 00:20:00 +00:00
2.x needs to be compatible with PHP<5.4
This commit is contained in:
parent
3919f93149
commit
cde93ca7b9
1 changed files with 3 additions and 3 deletions
|
@ -480,9 +480,9 @@ TEXT;
|
||||||
}
|
}
|
||||||
CakeLog::config('file', array('engine' => 'File', 'path' => TMP . 'logs' . DS));
|
CakeLog::config('file', array('engine' => 'File', 'path' => TMP . 'logs' . DS));
|
||||||
|
|
||||||
$val = [
|
$val = array(
|
||||||
'test' => ['key' => 'val']
|
'test' => array('key' => 'val')
|
||||||
];
|
);
|
||||||
Debugger::log($val, LOG_DEBUG, 0);
|
Debugger::log($val, LOG_DEBUG, 0);
|
||||||
$result = file_get_contents(LOGS . 'debug.log');
|
$result = file_get_contents(LOGS . 'debug.log');
|
||||||
$this->assertContains('DebuggerTest::testLog', $result);
|
$this->assertContains('DebuggerTest::testLog', $result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue