Fixes #14370: Fixed creating built-in validator in model with same function name

This commit is contained in:
Dmitry Dorogin
2017-07-23 17:17:20 +03:00
committed by Alexander Makarov
parent a55de109aa
commit 8ae2223c6a
4 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiiunit\data\validators\models;
use yii\base\Model;
class ValidatorTestFunctionModel extends Model
{
public $firstAttribute;
public function required()
{
return true;
}
}