Browse Source

[Validator] fixed property name

Fabien Potencier 14 years ago
parent
commit
8a7fa722ac
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Symfony/Component/Form/Configurable.php

+ 3 - 3
src/Symfony/Component/Form/Configurable.php

@@ -44,7 +44,7 @@ abstract class Configurable
      * The names of the required options
      * @var array
      */
-    private $getRequiredOptions = array();
+    private $requiredOptions = array();
 
     /**
      * Reads, validates and stores the given options
@@ -63,7 +63,7 @@ abstract class Configurable
         }
 
         // check required options
-        if ($diff = array_diff_key($this->getRequiredOptions, $this->options)) {
+        if ($diff = array_diff_key($this->requiredOptions, $this->options)) {
             throw new MissingOptionsException(sprintf('%s requires the following options: \'%s\'.', get_class($this), implode('", "', array_keys($diff))), array_keys($diff));
         }
     }
@@ -117,7 +117,7 @@ abstract class Configurable
     protected function addRequiredOption($name, array $allowedValues = array())
     {
         $this->knownOptions[$name] = true;
-        $this->getRequiredOptions[$name] = true;
+        $this->requiredOptions[$name] = true;
 
         // only test if the option is set, otherwise an error will be thrown
         // anyway