Imports may not be named like local classes. fixes #4200
For compatibility reasons we let our old `cache` class inherit from `dokuwiki\Cache\Cache` but `cache` equals `Cache`. At least on some PHP versions? I did not see any problem on my local machine running PHP 8.2 but the problem was visible on a machine running 8.1.27
This commit is contained in:
parent
2c978aed5a
commit
7a9c51a02e
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
// phpcs:ignoreFile
|
||||
use dokuwiki\Cache\Cache;
|
||||
use dokuwiki\Cache\Cache as NewCache;
|
||||
use dokuwiki\Cache\CacheParser;
|
||||
use dokuwiki\Cache\CacheInstructions;
|
||||
use dokuwiki\Cache\CacheRenderer;
|
||||
|
@ -9,11 +9,11 @@ use dokuwiki\Debug\DebugHelper;
|
|||
/**
|
||||
* @deprecated since 2019-02-02 use \dokuwiki\Cache\Cache instead!
|
||||
*/
|
||||
class cache extends Cache
|
||||
class cache extends NewCache
|
||||
{
|
||||
public function __construct($key, $ext)
|
||||
{
|
||||
DebugHelper::dbgDeprecatedFunction(Cache::class);
|
||||
DebugHelper::dbgDeprecatedFunction(NewCache::class);
|
||||
parent::__construct($key, $ext);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue