mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-19 05:37:54 +01:00
Fixes #14370: Fixed creating built-in validator in model with same function name
This commit is contained in:
committed by
Alexander Makarov
parent
a55de109aa
commit
8ae2223c6a
20
tests/data/validators/models/ValidatorTestFunctionModel.php
Normal file
20
tests/data/validators/models/ValidatorTestFunctionModel.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user