From 98f3634cf1e701f0ab21135394fdbe9a23f0732a Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 19 Mar 2023 17:24:10 +0300 Subject: [PATCH] Fixing Blog\{Comment, File}::getId() signature. --- src/Entity/Blog/Comment.php | 2 +- src/Entity/Blog/File.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/Blog/Comment.php b/src/Entity/Blog/Comment.php index 8faedd6..d78f2e0 100644 --- a/src/Entity/Blog/Comment.php +++ b/src/Entity/Blog/Comment.php @@ -65,7 +65,7 @@ class Comment $this->children = new ArrayCollection(); } - public function getId(): int + public function getId(): ?int { return $this->id; } diff --git a/src/Entity/Blog/File.php b/src/Entity/Blog/File.php index 0ec9f68..f9342e5 100644 --- a/src/Entity/Blog/File.php +++ b/src/Entity/Blog/File.php @@ -25,7 +25,7 @@ class File $this->remoteUrl = $remoteUrl; } - public function getId(): int + public function getId(): ?int { return $this->id; }