Development

#1376: sfComponent.class.php.patch

You must first sign up to be able to contribute.

Ticket #1376: sfComponent.class.php.patch

File sfComponent.class.php.patch, 0.8 kB (added by spascoe, 5 years ago)

Corrected Patch for get

  • .

    old new  
    33/* 
    44 * This file is part of the symfony package. 
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
    99 */ 
     
    281281   * 
    282282   * @see getVar() 
    283283   */ 
    284   public function __get($key) 
     284  public function &__get($key) 
    285285  { 
    286286    return $this->varHolder->get($key); 
    287287  } 
     
    352352 
    353353  /** 
    354354   * Returns true if a flash variable of the specified name exists. 
    355    *  
     355   * 
    356356   * @param  string The name of the flash variable 
    357357   * 
    358358   * @return boolean   true if the variable exists, false otherwise