Remove $cookiePath
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
70ff7dcd6b
commit
ed46bcb755
@ -792,17 +792,9 @@ class Config
|
||||
|
||||
/**
|
||||
* Get phpMyAdmin root path
|
||||
*
|
||||
* @staticvar string|null $cookie_path
|
||||
*/
|
||||
public function getRootPath(): string
|
||||
{
|
||||
static $cookiePath = null;
|
||||
|
||||
if ($cookiePath !== null && ! defined('TESTSUITE')) {
|
||||
return $cookiePath;
|
||||
}
|
||||
|
||||
$url = $this->get('PmaAbsoluteUri');
|
||||
|
||||
if (! empty($url)) {
|
||||
|
||||
@ -282,11 +282,9 @@
|
||||
<code>$value</code>
|
||||
</MixedAssignment>
|
||||
<MixedInferredReturnType>
|
||||
<code>string</code>
|
||||
<code>string|null</code>
|
||||
</MixedInferredReturnType>
|
||||
<MixedReturnStatement>
|
||||
<code>$cookiePath</code>
|
||||
<code>$tempDir[$name]</code>
|
||||
</MixedReturnStatement>
|
||||
<PossiblyInvalidArgument>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user