Skip to content

Commit

Permalink
Fix name of varible
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-fathi committed May 21, 2017
1 parent b1aaa09 commit d6c09e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/Form/FormContext.php
Expand Up @@ -135,9 +135,9 @@ public function type($field)
public function attributes($field)
{
$column = (array)$this->_form->schema()->field($field);
$whitelist = ['length' => null, 'precision' => null];
$whiteList = ['length' => null, 'precision' => null];

return array_intersect_key($column, $whitelist);
return array_intersect_key($column, $whiteList);
}

/**
Expand Down
6 changes: 6 additions & 0 deletions tests/TestCase/View/Form/FormContextTest.php
Expand Up @@ -25,6 +25,12 @@
*/
class FormContextTest extends TestCase
{
/**
* The request object.
*
* @var \Cake\Http\ServerRequest
*/
protected $request;

/**
* setup method.
Expand Down

0 comments on commit d6c09e3

Please sign in to comment.