From d3575ba3d240b2c7df6135c21314391083712c89 Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Wed, 16 May 2018 14:28:40 -0300 Subject: [PATCH] Update PHPDoc params of redirect with setFlashdata --- system/HTTP/RedirectResponse.php | 4 ++-- system/Session/Session.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/HTTP/RedirectResponse.php b/system/HTTP/RedirectResponse.php index 0dadd790ce90..86c03b10ab45 100644 --- a/system/HTTP/RedirectResponse.php +++ b/system/HTTP/RedirectResponse.php @@ -140,8 +140,8 @@ public function withInput() /** * Adds a key and message to the session as Flashdata. * - * @param string $key - * @param string $message + * @param string $key + * @param string|array $message * * @return $this */ diff --git a/system/Session/Session.php b/system/Session/Session.php index d4bf5b59328f..43c088a429bb 100644 --- a/system/Session/Session.php +++ b/system/Session/Session.php @@ -591,7 +591,7 @@ public function __get($key) * flashdata property, with $value containing the property value. * * @param array|string $data Property identifier or associative array of properties - * @param null $value Property value if $data is a scalar + * @param string|array $value Property value if $data is a scalar */ public function setFlashdata($data, $value = null) {