Skip to content

Commit

Permalink
fix directory mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Nov 10, 2022
1 parent d3abcf3 commit ab37a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -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'])
Expand Down
1 change: 1 addition & 0 deletions src/Psalm/Type/Union.php
Expand Up @@ -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,
Expand Down

0 comments on commit ab37a7a

Please sign in to comment.