Created
July 30, 2024 15:18
-
-
Save dasl-/4eaa1b59a9d70fc19a9256f4ce439e43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Phan/Analysis/PostOrderAnalysisVisitor.php b/src/Phan/Analysis/PostOrderAnalysisVisitor.php | |
index a7557675d..cf5a13993 100644 | |
--- a/src/Phan/Analysis/PostOrderAnalysisVisitor.php | |
+++ b/src/Phan/Analysis/PostOrderAnalysisVisitor.php | |
@@ -1632,7 +1632,7 @@ class PostOrderAnalysisVisitor extends AnalysisVisitor | |
foreach ($this->getReturnTypes($context, $expr, $node->lineno) as $lineno => [$expression_type, $inner_node]) { | |
// If there is no declared type, see if we can deduce | |
// what it should be based on the return type | |
- if ($method_return_type->isEmpty() | |
+ if (true || $method_return_type->isEmpty() | |
|| $method->isReturnTypeUndefined() | |
) { | |
if (!$is_trait) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment