diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-01-11 12:57:03 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-01-11 13:14:41 +0100 |
commit | 24d436cb600a725ba162a5387552a996a6fc486f (patch) | |
tree | 91e00673fad2c999776991ca57d09e8af9a10ed5 /apps/sharebymail | |
parent | 8b656e321bbf358d8074ce8a3976fac5defdece0 (diff) | |
download | nextcloud-server-24d436cb600a725ba162a5387552a996a6fc486f.tar.gz nextcloud-server-24d436cb600a725ba162a5387552a996a6fc486f.zip |
Remove unneeded casts that were found by Psalm
In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/sharebymail')
-rw-r--r-- | apps/sharebymail/lib/Activity.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/sharebymail/lib/Activity.php b/apps/sharebymail/lib/Activity.php index 79d7028afcf..23f036c4700 100644 --- a/apps/sharebymail/lib/Activity.php +++ b/apps/sharebymail/lib/Activity.php @@ -288,24 +288,24 @@ class Activity implements IProvider { case self::SUBJECT_SHARED_EMAIL_SELF: case self::SUBJECT_UNSHARED_EMAIL_SELF: return [ - 'file' => $this->generateFileParameter((int) $event->getObjectId(), $parameters[0]), + 'file' => $this->generateFileParameter($event->getObjectId(), $parameters[0]), 'email' => $this->generateEmailParameter($parameters[1]), ]; case self::SUBJECT_SHARED_EMAIL_BY: case self::SUBJECT_UNSHARED_EMAIL_BY: return [ - 'file' => $this->generateFileParameter((int) $event->getObjectId(), $parameters[0]), + 'file' => $this->generateFileParameter($event->getObjectId(), $parameters[0]), 'email' => $this->generateEmailParameter($parameters[1]), 'actor' => $this->generateUserParameter($parameters[2]), ]; case self::SUBJECT_SHARED_EMAIL_PASSWORD_SEND: return [ - 'file' => $this->generateFileParameter((int) $event->getObjectId(), $parameters[0]), + 'file' => $this->generateFileParameter($event->getObjectId(), $parameters[0]), 'email' => $this->generateEmailParameter($parameters[1]), ]; case self::SUBJECT_SHARED_EMAIL_PASSWORD_SEND_SELF: return [ - 'file' => $this->generateFileParameter((int) $event->getObjectId(), $parameters[0]), + 'file' => $this->generateFileParameter($event->getObjectId(), $parameters[0]), ]; } throw new \InvalidArgumentException(); |