Skip to content

Commit

Permalink
Small final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Aug 14, 2024
1 parent 1261425 commit b3141d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Controller/PublicationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
use OCP\AppFramework\Http\JSONResponse;
use OCP\IAppConfig;
use OCP\IRequest;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use Symfony\Component\Uid\Uuid;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Error\SyntaxError;
use ZipArchive;

class PublicationsController extends Controller
{
Expand Down Expand Up @@ -150,7 +147,7 @@ public function index(ObjectService $objectService, SearchService $searchService
* @NoAdminRequired
* @NoCSRFRequired
*/
public function attachments(string|int $id, ObjectService $objectService, array|null $publication = null): JSONResponse
public function attachments(string|int $id, ObjectService $objectService, ?array $publication = null): JSONResponse
{
if ($publication === null) {
$publication = $this->getPublicationData(id: $id, objectService: $objectService);
Expand Down

0 comments on commit b3141d8

Please sign in to comment.