Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 03743d7

Browse files
committed
Merge branch 'hotfix/234' into release-2.7
Close #234
2 parents badb5bd + c8689da commit 03743d7

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 2.7.13 - TBD
6+
7+
### Added
8+
9+
- Nothing.
10+
11+
### Deprecated
12+
13+
- Nothing.
14+
15+
### Removed
16+
17+
- Nothing.
18+
19+
### Fixed
20+
21+
- [#234](https://github.com/zendframework/zend-mvc/pull/234) fixes docblock
22+
annotations in `AbstractActionController::indexAction` and `notFoundAction` to
23+
indicate they return a `ViewModel|ConsoleModel` and not `array`.
24+
525
## 2.7.12 - 2017-04-27
626

727
### Added

src/Controller/AbstractActionController.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Zend\Http\Response as HttpResponse;
1313
use Zend\Mvc\Exception;
1414
use Zend\Mvc\MvcEvent;
15+
use Zend\View\Model\ConsoleModel;
1516
use Zend\View\Model\ViewModel;
1617

1718
/**
@@ -27,7 +28,7 @@ abstract class AbstractActionController extends AbstractController
2728
/**
2829
* Default action if none provided
2930
*
30-
* @return array
31+
* @return ViewModel
3132
*/
3233
public function indexAction()
3334
{
@@ -39,7 +40,7 @@ public function indexAction()
3940
/**
4041
* Action called if matched action does not exist
4142
*
42-
* @return array
43+
* @return ViewModel|ConsoleModel
4344
*/
4445
public function notFoundAction()
4546
{
@@ -59,7 +60,8 @@ public function notFoundAction()
5960
*
6061
* @param MvcEvent $e
6162
* @return mixed
62-
* @throws Exception\DomainException
63+
*
64+
* @throws Exception\DomainException If no RouteMatch was found within MvcEvent.
6365
*/
6466
public function onDispatch(MvcEvent $e)
6567
{

0 commit comments

Comments
 (0)