Browse Source

Fix #18383: RBAC's generated file made PSR-12 compliant

tags/2.0.40
Aleksandr Bogatikov 4 years ago committed by GitHub
parent
commit
e208a5aa0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/rbac/PhpManager.php

1
framework/CHANGELOG.md

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.40 under development
------------------------
- Bug #18383: RBAC's generated file made PSR-12 compliant (perlexed)
- Bug #18393: Fix `ActiveRecord::refresh()` to load data from database even if cache is enabled (hooman-mirghasemi)
- Bug #18386: Fix `assets/yii.activeForm.js` incorrect target selector for `validatingCssClass` (brussens)
- Enh #18381: The `yii\web\AssetManager` `$basePath` readable and writeable check has been moved to the `checkBasePathPermission()`. This check will run once before `publishFile()` and `publishDirectory()` (nadar)

2
framework/rbac/PhpManager.php

@ -796,7 +796,7 @@ class PhpManager extends BaseManager
*/
protected function saveToFile($data, $file)
{
file_put_contents($file, "<?php\nreturn " . VarDumper::export($data) . ";\n", LOCK_EX);
file_put_contents($file, "<?php\n\nreturn " . VarDumper::export($data) . ";\n", LOCK_EX);
$this->invalidateScriptCache($file);
}

Loading…
Cancel
Save