8000 Merge pull request #187 from c4pone/patch-2 · laravelio/laravel.io@e0b1a07 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0b1a07

Browse files
committed
Merge pull request #187 from c4pone/patch-2
Fixed a copy&past error
2 parents e115881 + a03e4d8 commit e0b1a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Lio/Articles/ArticleCreator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(ArticleRepository $articles)
2020
public function create(ArticleCreatorListener $listener, array $data, User $author, $validator = null)
2121
{
2222
if ($validator && ! $validator->isValid()) {
23-
return $listener->threadCreationError($validator->getErrors());
23+
return $listener->articleCreationError($validator->getErrors());
2424
}
2525

2626
return $this->createArticle($listener, $data + ['author_id' => $author->id]);

0 commit comments

Comments
 (0)
0