mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
var_export dumps null as NULL
correct for that so code standards are met with the results
This commit is contained in:
parent
5ef2a0100b
commit
3a5e00fa53
1 changed files with 3 additions and 0 deletions
|
@ -362,6 +362,9 @@ class FixtureTask extends BakeTask {
|
|||
$values = array();
|
||||
foreach ($record as $field => $value) {
|
||||
$val = var_export($value, true);
|
||||
if ($val === 'NULL') {
|
||||
$val = 'null';
|
||||
}
|
||||
$values[] = "\t\t\t'$field' => $val";
|
||||
}
|
||||
$out .= "\t\tarray(\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue