[PHP] Don't generate code referencing undefined $r

This could happen in overloaded methods which returned void and took at
least one const std::string& parameter.
This commit is contained in:
Olly Betts 2019-02-08 18:09:52 +13:00
commit 3f9ebb31b9
4 changed files with 26 additions and 1 deletions

View file

@ -22,6 +22,12 @@ const std::string& test_const_reference(const std::string &x) {
return x;
}
void test_const_reference_returning_void(const std::string &) {
}
void test_const_reference_returning_void(const std::string &, int) {
}
void test_pointer(std::string *x) {
}