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

Commit c35b9fa

Browse files
committed
Merge branch 'hotfix/53'
Close #53
2 parents 9f07e50 + f4ce970 commit c35b9fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Controller/Plugin/FilePostRedirectGet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function ($input, $value) {
169169
*/
170170
public function getSessionContainer()
171171
{
172-
if (!isset($this->sessionContainer)) {
172+
if (!$this->sessionContainer) {
173173
$this->sessionContainer = new Container('file_prg_post1');
174174
}
175175
return $this->sessionContainer;

src/Controller/Plugin/PostRedirectGet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __invoke($redirect = null, $redirectToUrl = false)
6767
*/
6868
public function getSessionContainer()
6969
{
70-
if (!isset($this->sessionContainer)) {
70+
if (!$this->sessionContainer) {
7171
$this->sessionContainer = new Container('prg_post1');
7272
}
7373
return $this->sessionContainer;

src/View/Console/RouteNotFoundStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ protected function reportNotFoundReason($e)
451451
return '';
452452
}
453453

454-
$reason = (isset($this->reason) && !empty($this->reason)) ? $this->reason : 'unknown';
454+
$reason = (!empty($this->reason)) ? $this->reason : 'unknown';
455455
$reasons = [
456456
Application::ERROR_CONTROLLER_NOT_FOUND => 'Could not match to a controller',
457457
Application::ERROR_CONTROLLER_INVALID => 'Invalid controller specified',

0 commit comments

Comments
 (0)