mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-03 22:01:36 +01:00 
			
		
		
		
	Update PSR-2
This commit is contained in:
		@@ -25,8 +25,10 @@ function smarty_literal_compiler_param($params, $index, $default = null)
 | 
			
		||||
    }
 | 
			
		||||
    // test if param is a literal
 | 
			
		||||
    if (!preg_match('/^([\'"]?)[a-zA-Z0-9-]+(\\1)$/', $params[ $index ])) {
 | 
			
		||||
        throw new SmartyException('$param[' . $index .
 | 
			
		||||
                                  '] is not a literal and is thus not evaluatable at compile time');
 | 
			
		||||
        throw new SmartyException(
 | 
			
		||||
            '$param[' . $index .
 | 
			
		||||
            '] is not a literal and is thus not evaluatable at compile time'
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $t = null;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user