From e3dc51bb685b6f3c9623d5fae7a4441f6b85d729 Mon Sep 17 00:00:00 2001 From: euromark Date: Wed, 10 Sep 2014 16:40:22 +0200 Subject: [PATCH] Manually correct remaining casts. --- lib/Cake/Model/Datasource/Database/Mysql.php | 2 +- lib/Cake/Model/Datasource/Database/Postgres.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Mysql.php b/lib/Cake/Model/Datasource/Database/Mysql.php index 399b2f61b..e931d6718 100644 --- a/lib/Cake/Model/Datasource/Database/Mysql.php +++ b/lib/Cake/Model/Datasource/Database/Mysql.php @@ -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'])) { diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index b9c8524fd..1c0a6c223 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -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); }