8000 added type hinting for $timezone parameter. Removed cast to string on… · symfony/symfony@e7b221b · GitHub
[go: up one dir, main page]

Skip to content

Commit e7b221b

Browse files
committed
added type hinting for $timezone parameter. Removed cast to string on $default parameter
1 parent ba3af51 commit e7b221b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/ParameterBag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ public function getBoolean($key, $default = false)
197197
*
198198
* @return \DateTime|null
199199
*/
200-
public function getDate($key, $format, $default = null, $timeZone = null)
200+
public function getDate($key, $format, $default = null, \DateTimeZone $timeZone = null)
201201
{
202-
$time = $this->get($key, (string) $default);
202+
$time = $this->get($key, $default);
203203

204204
// if the user has specified a timezone then pass that
205205
// otherwise do not even attempt to put a value but rather let the runtime decide

0 commit comments

Comments
 (0)
0