Skip to content

Commit

Permalink
phpunit bool|string
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Oct 10, 2022
1 parent 0da493b commit 3a420f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ public static function getGlobalType(string $var_id, int $codebase_analysis_php_
$request_time_float_helper = Type::getFloat();
$request_time_float_helper->possibly_undefined = true;

$bool_helper = Type::getBool();
$bool_helper->possibly_undefined = true;
$bool_string_helper = new Union([new Bool(), new TString()]);
$bool_string_helper->possibly_undefined = true;

$detailed_type = new TKeyedArray([
// https://www.php.net/manual/en/reserved.variables.server.php
Expand Down Expand Up @@ -724,7 +724,7 @@ public static function getGlobalType(string $var_id, int $codebase_analysis_php_
'HTTP_SEC_CH_UA_MOBILE' => $non_empty_string_helper,
'HTTP_SEC_CH_UA' => $non_empty_string_helper,
// phpunit
'APP_DEBUG' => $bool_helper,
'APP_DEBUG' => $bool_string_helper,
'APP_ENV' => $string_helper,
]);

Expand Down

0 comments on commit 3a420f4

Please sign in to comment.