From e208a5aa0d00ea9548582f179cc3f1438b02895a Mon Sep 17 00:00:00 2001 From: Aleksandr Bogatikov Date: Thu, 26 Nov 2020 20:15:34 +0700 Subject: [PATCH] Fix #18383: RBAC's generated file made PSR-12 compliant --- framework/CHANGELOG.md | 1 + framework/rbac/PhpManager.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 1a7b221..a4d5858 100644 --- a/framework/CHANGELOG.md +++ b/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) diff --git a/framework/rbac/PhpManager.php b/framework/rbac/PhpManager.php index 39fdcf1..9a15990 100644 --- a/framework/rbac/PhpManager.php +++ b/framework/rbac/PhpManager.php @@ -796,7 +796,7 @@ class PhpManager extends BaseManager */ protected function saveToFile($data, $file) { - file_put_contents($file, "invalidateScriptCache($file); }