Open the-liquid-metal opened 1 year ago
Bug Description Missing error on non-void function which has return statement that not filled with value.
Eclipse environment Version: 2023-06 (4.28.0) Build id: 20230608-1333 PDT: 8.0.0.202306050832
System
To Reproduce Steps to reproduce the behavior: copy-paste this script to the IDE
<?php declare(strict_types=1); namespace ns1\ns2; function fn1(): int { if (false) { echo "before"; return; // this statement must trigger error } return 10; }
Bug Description Missing error on non-void function which has return statement that not filled with value.
Eclipse environment Version: 2023-06 (4.28.0) Build id: 20230608-1333 PDT: 8.0.0.202306050832
System
To Reproduce Steps to reproduce the behavior: copy-paste this script to the IDE