summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2016-11-20 20:31:38 +0100
committerArnold Daniels <arnold@jasny.net>2016-11-20 20:31:38 +0100
commit0574cb923457b4ad4dddc451a3d244814ddc1858 (patch)
treeb4a2a6f21e0c14aabc8426534d7e94ff1e52ba39 /src
parent0a704b2edea2115c39294fab9bf29d822332efe3 (diff)
downloadcontroller-0574cb923457b4ad4dddc451a3d244814ddc1858.zip
controller-0574cb923457b4ad4dddc451a3d244814ddc1858.tar.gz
controller-0574cb923457b4ad4dddc451a3d244814ddc1858.tar.bz2
Fixed tests for Session\Flash
Diffstat (limited to 'src')
-rw-r--r--src/Controller/Session/Flash.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Controller/Session/Flash.php b/src/Controller/Session/Flash.php
index 5aa677d..7b158e8 100644
--- a/src/Controller/Session/Flash.php
+++ b/src/Controller/Session/Flash.php
@@ -52,10 +52,6 @@ class Flash
*/
public function set($type, $message)
{
- if (!$type) {
- throw new \InvalidArgumentException("Type should not be empty");
- }
-
$this->session[$this->key] = compact('type', 'message');
}