奇怪的自动补全行为:
class myFirstClass
{
public function myFunc1() {}
public function myFunc2() {}
}
class mySecondClass
{
/**
* @return myFirstClass
*/
public function getMyFirstClass()
{
return new myFirstClass();
}
public function init()
{
$myFirstClass = new myFirstClass()
为什么我得到一个500错误?我还没能成功地收到一封电子邮件到我的gmail帐户中,这里是我服务器日志中的内容:
tarted POST "/contacts" for ::1 at 2015-04-06 12:23:42 -0500
Processing by ContactsController#create as */*
Parameters: {"utf8"=>"✓","authenticity_token"=>"2rAtjm6kGBtqrHwL