chore: remove wrong annotations

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2023-02-09 22:01:56 +01:00
parent 690b170bde
commit fa5c5f85b1
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
2 changed files with 8 additions and 7 deletions

View file

@ -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);
}
}

View file

@ -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 {
/**