Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -18,7 +18,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension;
final class ChillWopiExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$config = $this->processConfiguration(new Configuration(), $configs);

View File

@@ -28,7 +28,7 @@ class AuthorizationManager implements \ChampsLibres\WopiBundle\Contracts\Authori
return false;
}
public function getRelatedStoredObject(Document $document)
public function getRelatedStoredObject(Document $document): ?\Chill\DocStoreBundle\Entity\StoredObject
{
return $this->storedObjectRepository->findOneBy(['uuid' => $document->getWopiDocId()]);
}

View File

@@ -32,7 +32,7 @@ final class ChillDocumentLockManagerTest extends KernelTestCase
self::bootKernel();
}
public function testRelock()
public function testRelock(): void
{
$manager = $this->makeManager(1);
$document = new StoredObject();
@@ -55,7 +55,7 @@ final class ChillDocumentLockManagerTest extends KernelTestCase
$this->assertFalse($manager->hasLock($document, $request->reveal()));
}
public function testSingleLock()
public function testSingleLock(): void
{
$manager = $this->makeManager(1);
$document = new StoredObject();