mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Manually correct remaining casts.
This commit is contained in:
parent
04ef39217f
commit
e3dc51bb68
2 changed files with 3 additions and 3 deletions
|
@ -493,7 +493,7 @@ class Mysql extends DboSource {
|
|||
if ($idx->Index_type === 'FULLTEXT') {
|
||||
$index[$idx->Key_name]['type'] = strtolower($idx->Index_type);
|
||||
} else {
|
||||
$index[$idx->Key_name]['unique'] = intval($idx->Non_unique == 0);
|
||||
$index[$idx->Key_name]['unique'] = (int)($idx->Non_unique == 0);
|
||||
}
|
||||
} else {
|
||||
if (!empty($index[$idx->Key_name]['column']) && !is_array($index[$idx->Key_name]['column'])) {
|
||||
|
|
|
@ -219,10 +219,10 @@ class Postgres extends DboSource {
|
|||
} elseif ($c->type === 'uuid') {
|
||||
$length = 36;
|
||||
} else {
|
||||
$length = intval($c->oct_length);
|
||||
$length = (int)$c->oct_length;
|
||||
}
|
||||
} elseif (!empty($c->char_length)) {
|
||||
$length = intval($c->char_length);
|
||||
$length = (int)$c->char_length;
|
||||
} else {
|
||||
$length = $this->length($c->type);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue