From 5cfb3842f188b5f684882716c06dfb32ac957108 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 17 Nov 2024 20:52:13 +0100 Subject: more phpstan errors --- Zotlabs/Entity/Item.php | 36 ------------------------------------ include/event.php | 2 +- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/Zotlabs/Entity/Item.php b/Zotlabs/Entity/Item.php index 9e4bb5ee8..76ff8b150 100644 --- a/Zotlabs/Entity/Item.php +++ b/Zotlabs/Entity/Item.php @@ -485,24 +485,6 @@ class Item extends BaseObject return $this; } - /** - * @return mixed - */ - public function getApproved() - { - return $this->approved; - } - - /** - * @param mixed $approved - * @return Item - */ - public function setApproved($approved) - { - $this->approved = $approved; - return $this; - } - /** * @return mixed */ @@ -521,24 +503,6 @@ class Item extends BaseObject return $this; } - /** - * @return mixed - */ - public function getReplyto() - { - return $this->replyto; - } - - /** - * @param mixed $replyto - * @return Item - */ - public function setReplyto($replyto) - { - $this->replyto = $replyto; - return $this; - } - /** * @return mixed */ diff --git a/include/event.php b/include/event.php index 2fa1cc4f1..3509c1556 100644 --- a/include/event.php +++ b/include/event.php @@ -647,7 +647,7 @@ function event_store_event($arr) { else { try { $hash = Uuid::uuid4()->toString(); - } catch (UnsatisfiedDependencyException $e) { + } catch (UnableToBuildUuidException $e) { $hash = random_string(48); } } -- cgit v1.2.3