mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Comment out type coercion warnings
This commit is contained in:
parent
6684d80041
commit
278d2cb642
@ -2329,7 +2329,7 @@ class StatementsChecker
|
||||
|
||||
if (!is_subclass_of($return_type, $expected_type, true)) {
|
||||
if (is_subclass_of($expected_type, $return_type, true)) {
|
||||
echo('Warning: dangerous type coercion in ' . $file_name . ' on line ' . $line_number . PHP_EOL);
|
||||
//echo('Warning: dangerous type coercion in ' . $file_name . ' on line ' . $line_number . PHP_EOL);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user