mirror of
				https://github.com/Mibew/handlebars.php.git
				synced 2025-11-04 04:05:07 +03:00 
			
		
		
		
	Don't enforce strict search for variables in block exprs
This commit is contained in:
		
							parent
							
								
									8f9d0e5fef
								
							
						
					
					
						commit
						083458d839
					
				@ -402,7 +402,7 @@ class Template
 | 
			
		||||
        // fallback to mustache style each/with/for just if there is
 | 
			
		||||
        // no argument at all.
 | 
			
		||||
        try {
 | 
			
		||||
            $sectionVar = $context->get($sectionName, true);
 | 
			
		||||
            $sectionVar = $context->get($sectionName, false);
 | 
			
		||||
        } catch (\InvalidArgumentException $e) {
 | 
			
		||||
            throw new \RuntimeException(
 | 
			
		||||
                $sectionName . ' is not registered as a helper'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user