mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +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:
parent
a0aff18bd8
commit
b85d6374fe
@ -1041,9 +1041,10 @@ 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
|
||||||
|| !$function instanceof PhpParser\Node\Stmt\ClassMethod
|
|| $is_final
|
||||||
|
|| !$function instanceof PhpParser\Node\Stmt\ClassMethod
|
||||||
);
|
);
|
||||||
|
|
||||||
$manipulator->setReturnType(
|
$manipulator->setReturnType(
|
||||||
|
Loading…
Reference in New Issue
Block a user