diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index 993d7dd5a..94d5d2f95 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -934,7 +934,7 @@ class Postgres extends DboSource { */ public function value($data, $column = null, $null = true) { $value = parent::value($data, $column, $null); - if ($column == 'uuid' && is_scalar($data)) { + if ($column === 'uuid' && is_scalar($data)) { if ($data === '') { return 'NULL'; } diff --git a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php index 08d0a21f7..e579b6c05 100644 --- a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php @@ -501,7 +501,7 @@ class SecurityComponentTest extends CakeTestCase { $this->Controller->request->data = array( 'Model' => array('username' => 'nate', 'password' => 'foo', 'valid' => '0'), '_Token' => compact('fields', 'unlocked') - ); + ); $this->assertFalse($this->Controller->failed, 'Should not be failed yet'); $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed, 'Should fail because of validatePost.');