Tobias
8651a79716
Update tutorial-core-validators.md ( #18348 )
...
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;
}
}
}
```
4 years ago
daqiu
9d338eed2b
Fix: chinese document index page sphinx,redis,mogondb,elastic link is inactive ( #18354 )
4 years ago
Pixelisator
9e184aaeae
Typo fix "Enntêtes HTTP" ( #18350 )
...
Typo fix on "Enntêtes HTTP", should be "Entêtes HTTP" instead.
4 years ago
Evgeniy Tkachenko
f8337a15c2
Fix #18263 : Fix writing `\yii\caching\FileCache` files to the same directory when `keyPrefix` is set
4 years ago
Ivan Sidorov
cd36f505b1
Fix #16831 : Fix console Table Widget does not render correctly in combination with ANSI formatting
4 years ago
Alexander Makarov
ed1c087784
Fix #18317 : Additional PHP 8 compatibility fixes
...
Co-authored-by: Bizley <pawel@positive.codes>
4 years ago
Evgeniy Tkachenko
7354329ed6
Improvements for Russian documentation ( #18343 )
...
Added a little grammar, removed redundant words, improved the perception
of the text
4 years ago
DarkDef
f94fd13228
Adjust types in ActiveRecordInterface::updateAll() phpdoc ( #18341 )
4 years ago
Toir427
251a3aaf23
Fix #18336 : typo in documentation
4 years ago
杨晶旭
7ff516063d
Fix #18160 , fix #18192 : Fixed `registerFile` with argument depends set does not use the position and appendTimestamp argument, also modify the unit view
4 years ago
Toir427
d451eaf53b
Fix typo ( #18324 )
4 years ago
Alexander Koltygin
1e7fbb2689
Update db-migrations.md ( #18320 )
...
Correcting a typo
4 years ago
Evgeniy Tkachenko
801ac17657
Fix #16077 : Improved phpdoc generation for class properties ( #18319 )
...
When generating documentation, the `@property-read` and
`@property-write` tags are set to the magic properties of classes
4 years ago
Alexander Makarov
7a8d32e176
Add colors to CI ( #18316 )
4 years ago
Walid Said
3dabcdb6ab
Fix #18313 : Fix multipart form data parse with double quotes
4 years ago
Walid Said
3f3003d823
Fix #18303 : Fix creating migration issue for column methods used after defaultValues
4 years ago
DarkDef
7a50da5cf8
Fix #18287 : Fix for OUTPUT INSERTED and computed columns. Added flag to computed values in table schema
4 years ago
Tobias Munk
88e79d3f8e
Fix #18290 : Fix response with non-seekable streams
4 years ago
DrDeath72
0210999748
Fix #18308 : Fixed `\yii\base\Model::getErrorSummary()` reverse order
4 years ago
daqiu
c16a7fdfb2
Fix usage of Object in Chinese guide ( #18310 )
4 years ago
My6UoT9
03da5bb689
Updates to ErrorHandler, add missing type hint \Throwable ( #18302 )
...
* Updated phpdoc so it has \Throwable
- `abstract protected function renderException($exception);` is extended in web/ErrorHandler to also have `\Error`.
- `public static function convertExceptionToError($exception)` is called from widgets/ActiveField.php with
```
/**
* PHP magic method that returns the string representation of this object.
* @return string the string representation of this object.
*/
public function __toString()
{
// __toString cannot throw exception
// use trigger_error to bypass this limitation
try {
return $this->render();
} catch (\Exception $e) {
ErrorHandler::convertExceptionToError($e);
return '';
} catch (\Throwable $e) {
ErrorHandler::convertExceptionToError($e);
return '';
}
}
```
* Add \Throwable to phpdoc in response.php
The ErrorHandler has been updated in phpdoc to have throwable, this complets that change.
* Update ErrorHandler.php
fixed missing `|`
4 years ago
Alex
1d7baabab5
Fix #18297 : Replace usage of deprecated `ReflectionParameter::isArray()` method in PHP8
4 years ago
My6UoT9
affd796c5c
Updated phpdoc return type for getExceptionName ( #18296 )
...
`getExceptionName` can return null, as described in phpdoc.
4 years ago
My6UoT9
2ce927788a
Update phpdoc for widget->getId ( #18295 )
...
The private variable `$_id` is only set when `$autogenerate` is true, else it stays null, and will be returned by the function.
4 years ago
Bizley
67728476ec
Fix #16418 : Fixed `yii\data\Pagination::getLinks()` to return links to the first and the last pages regardless of the current page
4 years ago
Bizley
9790ea3a35
Add tests to ensure ActiveQuery is using DB connection set by model ( #18286 )
4 years ago
yakninja
c48254cafa
Minor typo fix in bg translation ( #18282 )
4 years ago
Alexander Makarov
928b511d75
prepare for next release
4 years ago
Alexander Makarov
6e694ee249
release version 2.0.38
4 years ago
Alexander Makarov
9abccb96d7
Merge pull request from GHSA-699q-wcff-g9mj
...
* Fix unsafe unserialize()
* Add changelog and comments on why unserialize() is disabled
* Add since tag
4 years ago
Alexander Makarov
52ae0dabdc
Adjust changelog messages
4 years ago
Sam
9c838207ce
Bug #18245 : Make resolving DI references inside of arrays in dependencies optional
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Andrii Vasyliev <sol@hiqdev.com>
4 years ago
Daniel Szabo
973ecda74c
Fix #16892 : Validation error class was not applied to checkbox and radio when validationStateOn = self::VALIDATION_STATE_ON_INPUT
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
4 years ago
Wilmer Arambula
e5e80ac5ec
Fix testGetColumType for PostgreSQL ( #18279 )
4 years ago
Wilmer Arambula
5558ee793b
Fix #18040 , fix #15265 , fix #18232 database issues ( #18225 )
...
- Bug #18040 : Display width specification for integer data types was deprecated in MySQL 8.0.19
- Bug #15265 : PostgreSQL > 10.0 is not pass tests with default value of timestamp CURRENT_TIMESTAMP
- Bug #18232 : Fail tests pgsql v-10.14, v-11.9, v-12-latest
4 years ago
Ahmed Shahawi
1972741bae
Install codeception as a dev dependency ( #18277 )
4 years ago
parthjani07
72fb200f04
Fix typos in Hindi language ( #18276 )
4 years ago
DarkDef
4b2af4d2a4
Bug #13973 : Correct alterColumn for MSSQL & drop constraints before drop column
...
Fixing #11158 and #13973
4 years ago
Alex
287476465d
Fix #18196 : `yii\rbac\DbManager::$checkAccessAssignments` is now `protected`
4 years ago
JesseHines0
db4beebe23
Fix #18213 : Do not load fixtures with circular dependencies twice instead of throwing an exception
4 years ago
Maxim Hodyrev
09dc9b70f8
Fix #18066 : Fixed `yii\db\Query::create()` wasn't using all info from `withQuery()`
4 years ago
Alexander Makarov
e81b0f00a7
Fix #18235 : Document inline validator change regarding static closures
4 years ago
Michael Härtl
9aa46136f6
Fix #18248 : Render only one stack trace on console for chained exceptions
4 years ago
Vladislav Pototskiy
e348c0f460
Fix #18269 : Fix integer safe attribute to work properly in `yii\base\Model`
4 years ago
azbuk
b680494d6b
Fix typo in message for lang uz ( #18272 )
4 years ago
Tobias Munk
7423222eae
Add docs about IP blocks for property $ips ( #18261 )
4 years ago
Ming Yi
c6cba1dff3
Minor typo for ActiveRecord doc ( #18246 )
4 years ago
DarkDef
f212925242
Fix #18239 : Fix support of no-extension files for `FileValidator::validateExtension()`
4 years ago
Basil
175a201004
Fix #18236 : Allow `yii\filters\RateLimiter` to accept a closure function for the `$user` property in order to assign values on runtime
4 years ago
bscheshirwork
6bfd21cead
Update Russian translation of structure-assets.md ( #18243 )
4 years ago