Warn when non-void methods and closures finish without returning
Build / AerScript (push) Successful in 40s
Build / AerScript (push) Successful in 40s
This commit is contained in:
@@ -13,7 +13,7 @@ class Program {
|
||||
return $cur;
|
||||
}
|
||||
|
||||
public int main() {
|
||||
public void main() {
|
||||
var_dump($this->fib(43));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ final class Test {
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public int set(int $value = 0) {
|
||||
public void set(int $value = 0) {
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user