| @@ -68,9 +68,9 @@ | ||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * @throws UserGroupTypeException |
| 71 | 71 | */ |
| 72 | - public function addAttachment(int|string|null $postId): void | |
| 72 | + public function addAttachment(int $postId): void | |
| 73 | 73 | { |
| 74 | 74 | $post = $this->objectHandler->getPost($postId); |
| 75 | 75 | $postType = $post->post_type; |
| 76 | 76 | $postId = $post->ID; |
| @@ -99,9 +99,9 @@ | ||
| 99 | 99 | * @throws UserGroupTypeException |
| 100 | 100 | */ |
| 101 | 101 | public function saveAjaxAttachmentData(): void |
| 102 | 102 | { |
| 103 | - $attachmentId = (int) $this->getRequestParameter('id'); | |
| 103 | + $attachmentId = $this->getRequestParameter('id'); | |
| 104 | 104 | $userGroups = $this->getRequestParameter(self::DEFAULT_GROUPS_FORM_NAME); |
| 105 | 105 | |
| 106 | 106 | $this->saveObjectData( |
| 107 | 107 | ObjectHandler::GENERAL_POST_OBJECT_TYPE, |
| @@ -118,9 +118,9 @@ | ||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * @throws UserGroupTypeException |
| 121 | 121 | */ |
| 122 | - public function showMediaFile(array $formFields, ?WP_Post $post = null): array | |
| 122 | + public function showMediaFile(array $formFields, WP_Post $post = null): array | |
| 123 | 123 | { |
| 124 | 124 | if ($this->getRequestParameter('action') !== 'edit') { |
| 125 | 125 | $attachmentId = $this->getRequestParameter('attachment_id'); |
| 126 | 126 | |