The `DefaultValueValidator` works only with closures not with any callable as suggested.
See f8337a15c2/framework/validators/DefaultValueValidator.php (L47)
```
/**
* {@inheritdoc}
*/
public function validateAttribute($model, $attribute)
{
if ($this->isEmpty($model->$attribute)) {
if ($this->value instanceof \Closure) {
$model->$attribute = call_user_func($this->value, $model, $attribute);
} else {
$model->$attribute = $this->value;
}
}
}
```
- Remove header from secure headers
- Regexp and return null fix
- Fix tests, fix in array case sensitivity, rx duplicated group name
- Simplify code
- Add phpdoc
Co-Authored-By: Alexander Makarov <sam@rmcreative.ru>
- Allow `__class` and `__construct()` in configurations
- Allow wider use of `Instance::of`
- Allow static call DI definition like: `[SomeFactory::class, 'createMethod']`
- Add support for `__class` in `createObject`
* Fix typo with `grabFixture()` (remove second argument)
* Use lowercase for filename placeholders to better match real filenames
* Add some missing articles for better readability
* Updated php.net link for some MemCache properties [skip ci]
* Changed protocol to https for links to php.net in comments
* Changed protocol to https for links to php.net in code
* Changed www.php.net (http) to secure.php.net (https) in comments
* Changed www.php.net (http) to secure.php.net (https) in code
* Changed protocol to https for links to php.net in UPGRADE.md
* Changed protocol to https for links to pecl.php.net in comments
* Changed us.php.net to secure.php.net (https) in comments
* Changed protocol to https for links to php.net in docs
* Changed www.php.net (http) to secure.php.net (https) in docs
* Changed protocol to https for links to pecl.php.net in docs
* Changed ru/jp.php.net to secure.php.net (https) in docs
Don't sure about russian guide: is this links meant to be for guide on russian, or not?