mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-17 21:12:14 +01:00
chore: remove wrong annotations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
690b170bde
commit
fa5c5f85b1
2 changed files with 8 additions and 7 deletions
|
|
@ -429,7 +429,8 @@ class ClassLoader
|
|||
public function loadClass($class)
|
||||
{
|
||||
if ($file = $this->findFile($class)) {
|
||||
(self::$includeFile)($file);
|
||||
$includeFile = self::$includeFile;
|
||||
$includeFile($file);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -560,7 +561,10 @@ class ClassLoader
|
|||
return false;
|
||||
}
|
||||
|
||||
private static function initializeIncludeClosure(): void
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
private static function initializeIncludeClosure()
|
||||
{
|
||||
if (self::$includeFile !== null) {
|
||||
return;
|
||||
|
|
@ -574,8 +578,8 @@ class ClassLoader
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
self::$includeFile = static function($file) {
|
||||
self::$includeFile = \Closure::bind(static function($file) {
|
||||
include $file;
|
||||
};
|
||||
}, null, null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,6 @@ namespace OCA\Richdocuments\Db;
|
|||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
/**
|
||||
* Class WopiEntity
|
||||
*
|
||||
* @package OCA\Richdocuments\Db
|
||||
*
|
||||
* @method void setOwnerUid(string $uid)
|
||||
|
|
@ -59,7 +57,6 @@ use OCP\AppFramework\Db\Entity;
|
|||
* @method int getTemplateId()
|
||||
* @method void setShare(string $token)
|
||||
* @method string getShare()
|
||||
* @method static Wopi fromParams(array $params)
|
||||
*/
|
||||
class Wopi extends Entity implements \JsonSerializable {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue