Преглед на файлове

Stopped passing context by reference to _findVariableInContext. Updated documentation.

Justin Hileman преди 15 години
родител
ревизия
97e6911935
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      Mustache.php

+ 4 - 4
Mustache.php

@@ -470,8 +470,8 @@ class Mustache {
 	 * Push a local context onto the stack.
 	 *
 	 * @access protected
-	 * @param array $local_context
-	 * @return array
+	 * @param array &$local_context
+	 * @return void
 	 */
 	protected function _pushContext(&$local_context) {
 		$new = array();
@@ -537,11 +537,11 @@ class Mustache {
 	 *
 	 * @access protected
 	 * @param string $tag_name
-	 * @param array &$context
+	 * @param array $context
 	 * @throws MustacheException Unknown variable name.
 	 * @return string
 	 */
-	protected function _findVariableInContext($tag_name, &$context) {
+	protected function _findVariableInContext($tag_name, $context) {
 		foreach ($context as $view) {
 			if (is_object($view)) {
 				if (isset($view->$tag_name)) {