Skip to content

Commit

Permalink
Fix #87 - Correct return type
Browse files Browse the repository at this point in the history
Correct return type to match `asModelFailure()`
  • Loading branch information
olivierbon authored May 21, 2024
1 parent 8cf5cd7 commit f70d591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/SaveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ private function _returnSuccess(Entry $entry, $isSpam = false): Response
*
* @param Settings $settings
* @param Entry $entry
* @return Response
* @return Response|null
*/
private function _returnError(Settings $settings, Entry $entry): Response
private function _returnError(Settings $settings, Entry $entry): ?Response
{
if ($this->hasEventHandlers(self::EVENT_AFTER_ERROR)) {
$this->trigger(self::EVENT_AFTER_ERROR, new SaveEvent([
Expand Down

0 comments on commit f70d591

Please sign in to comment.