mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixes: A non well formed numeric value encountered - php 7
This commit is contained in:
parent
a59ea13712
commit
34b4261e6d
1 changed files with 3 additions and 1 deletions
|
@ -362,7 +362,9 @@ class JsonViewTest extends CakeTestCase {
|
|||
$Controller = new Controller($Request, $Response);
|
||||
|
||||
// non utf-8 stuff
|
||||
$data = array('data' => array('foo' => 'bar' . chr('0x97')));
|
||||
$bar = 'bar';
|
||||
$bar .= chr(0x97);
|
||||
$data = array('data' => array('foo' => $bar));
|
||||
|
||||
$Controller->set($data);
|
||||
$Controller->set('_serialize', 'data');
|
||||
|
|
Loading…
Add table
Reference in a new issue