don't typecast null values inside dispatcher.php

This commit is contained in:
Georg Ehrke 2014-06-29 22:40:50 +02:00
parent 67d029a21e
commit c30bea45e9
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class Dispatcher {
) { ) {
$value = false; $value = false;
} elseif(in_array($type, $types)) { } elseif($value !== null && in_array($type, $types)) {
settype($value, $type); settype($value, $type);
} }