"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/data/base/Speaker.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

Speaker.php  (yii2-2.0.35):Speaker.php  (yii2-2.0.36)
skipping to change at line 52 skipping to change at line 52
return []; return [];
} }
public function scenarios() public function scenarios()
{ {
return [ return [
'test' => ['firstName', 'lastName', '!underscore_style'], 'test' => ['firstName', 'lastName', '!underscore_style'],
'duplicates' => ['firstName', 'firstName', '!underscore_style', '!un derscore_style'], 'duplicates' => ['firstName', 'firstName', '!underscore_style', '!un derscore_style'],
]; ];
} }
private $_checkedValues = [];
public function customValidatingMethod($attribute, $params, $validator, $cur
rent)
{
$this->_checkedValues[] = $current;
$this->addError($attribute, 'Custom method error');
}
public function getCheckedValues()
{
return $this->_checkedValues;
}
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)