diff --git a/lib/Less/Environment.php b/lib/Less/Environment.php
index <HASH>..<HASH> 100755
--- a/lib/Less/Environment.php
+++ b/lib/Less/Environment.php
@@ -67,6 +67,10 @@ class Less_Environment{
 	public static $colon_space;
 	public static $firstSelector;
 
+
+	/**
+	 * @param array|null $options
+	 */
 	public function __construct( $options = null ){
 		$this->frames = array();
 
diff --git a/lib/Less/Parser.php b/lib/Less/Parser.php
index <HASH>..<HASH> 100755
--- a/lib/Less/Parser.php
+++ b/lib/Less/Parser.php
@@ -46,7 +46,7 @@ class Less_Parser extends Less_Cache{
 
 
 	/**
-	 * @param Environment|array|null $env
+	 * @param Less_Environment|array|null $env
 	 */
 	public function __construct( $env = null ){
 
@@ -57,10 +57,10 @@ class Less_Parser extends Less_Cache{
 			$this->env = $env;
 		}else{
 			$this->env = new Less_Environment( $env );
-			$this->options = $env;
 			self::$imports = array();
 			self::$import_dirs = array();
 			if( is_array($env) ){
+				$this->options = $env;
 				$this->SetOptions($env);
 			}
 		}
correct __construct params