From 923454f449f6c3b2044510712bf58d2b4b958032 Mon Sep 17 00:00:00 2001 From: orklah Date: Wed, 19 Jan 2022 21:42:37 +0100 Subject: [PATCH] fix CS --- .../MbInternalEncodingReturnTypeProvider.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Psalm/Internal/Provider/ReturnTypeProvider/MbInternalEncodingReturnTypeProvider.php b/src/Psalm/Internal/Provider/ReturnTypeProvider/MbInternalEncodingReturnTypeProvider.php index fbd1365fffd..336ad7e76cd 100644 --- a/src/Psalm/Internal/Provider/ReturnTypeProvider/MbInternalEncodingReturnTypeProvider.php +++ b/src/Psalm/Internal/Provider/ReturnTypeProvider/MbInternalEncodingReturnTypeProvider.php @@ -42,7 +42,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev $first_arg_type = $nodeTypeProvider->getType($call_args[0]->value); if ($first_arg_type === null) { - if ($codebase->analysis_php_version_id >= 80000) { + if ($codebase->analysis_php_version_id >= 8_00_00) { return new Union([new TString(), new TTrue()]); } else { return new Union([new TString(), new TBool()]); @@ -85,7 +85,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev $list_return_atomics = []; if ($has_string || $has_stringable || $has_tostring) { - if ($codebase->analysis_php_version_id >= 80000) { + if ($codebase->analysis_php_version_id >= 8_00_00) { $list_return_atomics[] = Type::getTrue(); } else { $list_return_atomics[] = Type::getBool(); @@ -93,7 +93,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev } if ($has_null) { - if ($codebase->analysis_php_version_id >= 80000) { + if ($codebase->analysis_php_version_id >= 8_00_00) { $list_return_atomics[] = Type::getString(); } else { $list_return_atomics[] = Type::getFalse(); @@ -101,7 +101,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev } if ($has_unknown) { - if ($codebase->analysis_php_version_id >= 80000) { + if ($codebase->analysis_php_version_id >= 8_00_00) { $list_return_atomics[] = Type::getNever(); } else { $list_return_atomics[] = Type::getNull();