Merge #18489 - Remove $cookiePath

Pull-request: #18489

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2023-06-13 00:16:47 +02:00
commit 8468c104af
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 0 additions and 10 deletions

View File

@ -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)) {

View File

@ -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>