From ab37a7ac2e28bb636233fdf156010c6887de0f4b Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Thu, 10 Nov 2022 16:45:24 +0100 Subject: [PATCH] fix directory mixup --- src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php | 2 +- src/Psalm/Type/Union.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php b/src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php index a456f507dc3..5e6b6e80026 100644 --- a/src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php @@ -512,7 +512,7 @@ public static function verifyReturnType( && ($declared_return_type->from_docblock || $codebase->analysis_php_version_id >= 8_10_00) // no error for single throw, as extending a class might not work without errors // https://3v4l.org/vCSF4#v8.1.12 - && !ScopeAnalyzer::onlyThrows($type_provider, $function_stmts) + && !ScopeAnalyzer::onlyThrows($function_stmts) ) { if ($codebase->alter_code && isset($project_analyzer->getIssuesToFix()['InvalidReturnType']) diff --git a/src/Psalm/Type/Union.php b/src/Psalm/Type/Union.php index 3619925775f..7709d85957d 100644 --- a/src/Psalm/Type/Union.php +++ b/src/Psalm/Type/Union.php @@ -28,6 +28,7 @@ * ignore_isset?: bool, * possibly_undefined?: bool, * possibly_undefined_from_try?: bool, + * explicit_never?: bool, * had_template?: bool, * from_template_default?: bool, * by_ref?: bool,