mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Fix some incorrect automated refactorings
This commit is contained in:
@@ -40,7 +40,7 @@ class DeletePostHandler
|
||||
|
||||
/**
|
||||
* @param DeletePost $command
|
||||
* @return \Flarum\Core\Post
|
||||
* @return \Flarum\Post\Post
|
||||
* @throws \Flarum\User\Exception\PermissionDeniedException
|
||||
*/
|
||||
public function handle(DeletePost $command)
|
||||
|
@@ -48,7 +48,7 @@ class EditPostHandler
|
||||
|
||||
/**
|
||||
* @param EditPost $command
|
||||
* @return \Flarum\Core\Post
|
||||
* @return \Flarum\Post\Post
|
||||
* @throws \Flarum\User\Exception\PermissionDeniedException
|
||||
*/
|
||||
public function handle(EditPost $command)
|
||||
|
@@ -124,8 +124,8 @@ class CoreServiceProvider extends AbstractServiceProvider
|
||||
public function registerPostTypes()
|
||||
{
|
||||
$models = [
|
||||
'Flarum\Post\Post\CommentPost',
|
||||
'Flarum\Post\Post\DiscussionRenamedPost'
|
||||
'Flarum\Post\CommentPost',
|
||||
'Flarum\Post\DiscussionRenamedPost'
|
||||
];
|
||||
|
||||
$this->app->make('events')->fire(
|
||||
|
Reference in New Issue
Block a user