Skip to content

Commit 7f2f1eb

Browse files
committed
use right return types
1 parent 96ec977 commit 7f2f1eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

classes/discussion/discussion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public function moodleoverflow_delete_post_from_discussion(object $prepost): boo
362362
* @param object $prepost The prepost object from the post_control. Has Information about the post and other important stuff.
363363
* @throws dml_exception|moodle_exception
364364
*/
365-
public function moodleoverflow_edit_post_from_discussion(object $prepost): true {
365+
public function moodleoverflow_edit_post_from_discussion(object $prepost): bool {
366366
global $DB;
367367
$this->existence_check();
368368
$this->posts_check();

classes/post/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public function moodleoverflow_delete_post(bool $deletechildren): bool {
405405
* @return true if the post has been edited successfully
406406
* @throws moodle_exception
407407
*/
408-
public function moodleoverflow_edit_post(int $time, string $postmessage, int $messageformat, ?int $formattachments): true {
408+
public function moodleoverflow_edit_post(int $time, string $postmessage, int $messageformat, ?int $formattachments): bool {
409409
global $DB;
410410
$this->existence_check();
411411

0 commit comments

Comments
 (0)