1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Revert "Fix psalter bug changing to native types even when backwards incompatible is false"

This reverts commit 98e22c27fff7be6a143406abe8b2cdd54d02283b.
This commit is contained in:
kkmuffme 2023-01-03 23:27:53 +01:00
parent a0aff18bd8
commit b85d6374fe

View File

@ -1041,8 +1041,9 @@ class ReturnTypeAnalyzer
$allow_native_type = !$docblock_only $allow_native_type = !$docblock_only
&& $codebase->analysis_php_version_id >= 7_00_00 && $codebase->analysis_php_version_id >= 7_00_00
&& $codebase->allow_backwards_incompatible_changes && (
&& ( $is_final $codebase->allow_backwards_incompatible_changes
|| $is_final
|| !$function instanceof PhpParser\Node\Stmt\ClassMethod || !$function instanceof PhpParser\Node\Stmt\ClassMethod
); );