Convert CheckConfigurationPermissions to $config
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
346f7705f8
commit
ed2d66a6ca
@ -603,12 +603,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Config.php
|
||||
|
||||
-
|
||||
message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#'
|
||||
identifier: booleanNot.exprNotBoolean
|
||||
count: 1
|
||||
path: src/Config.php
|
||||
|
||||
-
|
||||
message: '#^Only booleans are allowed in a negated boolean, string\|false given\.$#'
|
||||
identifier: booleanNot.exprNotBoolean
|
||||
|
||||
@ -228,7 +228,6 @@
|
||||
</PropertyTypeCoercion>
|
||||
<RiskyTruthyFalsyComparison>
|
||||
<code><![CDATA[! $fileSize]]></code>
|
||||
<code><![CDATA[! $this->get('CheckConfigurationPermissions')]]></code>
|
||||
<code><![CDATA[! ini_get('file_uploads')]]></code>
|
||||
<code><![CDATA[$cookieName]]></code>
|
||||
<code><![CDATA[$postSize]]></code>
|
||||
|
||||
@ -596,7 +596,7 @@ class Config
|
||||
public function checkPermissions(): void
|
||||
{
|
||||
// Check for permissions (on platforms that support it):
|
||||
if (! $this->get('CheckConfigurationPermissions') || ! @file_exists($this->source)) {
|
||||
if (! $this->config->CheckConfigurationPermissions || ! @file_exists($this->source)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user