mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Updating for PHP5.4
- Fixing strict errors. - Fixing call time pass by reference as its been removed in PHP5.4 - Fix assign new as a reference, which has been removed.
This commit is contained in:
parent
0c0bb60486
commit
0a0a09920b
15 changed files with 30 additions and 50 deletions
|
@ -546,9 +546,10 @@ class CakeSchema extends Object {
|
|||
$difference[$key] = $value;
|
||||
continue;
|
||||
}
|
||||
$compare = strval($value);
|
||||
$correspondingValue = strval($correspondingValue);
|
||||
if ($compare === $correspondingValue) {
|
||||
if (is_array($value) && is_array($correspondingValue)) {
|
||||
continue;
|
||||
}
|
||||
if ($value === $correspondingValue) {
|
||||
continue;
|
||||
}
|
||||
$difference[$key] = $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue