"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/validators/InlineValidator.php" between
yii2-2.0.36.tar.gz and yii2-2.0.37.tar.gz

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

InlineValidator.php  (yii2-2.0.36):InlineValidator.php  (yii2-2.0.37)
skipping to change at line 96 skipping to change at line 96
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function clientValidateAttribute($model, $attribute, $view) public function clientValidateAttribute($model, $attribute, $view)
{ {
if ($this->clientValidate !== null) { if ($this->clientValidate !== null) {
$method = $this->clientValidate; $method = $this->clientValidate;
if (is_string($method)) { if (is_string($method)) {
$method = [$model, $method]; $method = [$model, $method];
} elseif ($method instanceof \Closure) { } elseif ($method instanceof \Closure) {
$method = $this->method->bindTo($model); $method = $method->bindTo($model);
} }
$current = $this->current; $current = $this->current;
if ($current === null) { if ($current === null) {
$current = $model->$attribute; $current = $model->$attribute;
} }
return $method($attribute, $this->params, $this, $current); return $method($attribute, $this->params, $this, $current);
} }
return null; return null;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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