mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
suppress warnings so test runner doesn't fart
This commit is contained in:
parent
b880714231
commit
3b01c5f842
1 changed files with 2 additions and 2 deletions
|
@ -149,9 +149,9 @@ class JsonView extends View {
|
|||
}
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.4.0', '>=') && Configure::read('debug')) {
|
||||
$json = json_encode($data, JSON_PRETTY_PRINT);
|
||||
$json = @json_encode($data, JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
$json = json_encode($data);
|
||||
$json = @json_encode($data);
|
||||
}
|
||||
|
||||
if (function_exists('json_last_error') && json_last_error() !== JSON_ERROR_NONE) {
|
||||
|
|
Loading…
Reference in a new issue