Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update field name #49

Merged
2 commits merged into from
Mar 23, 2017
Merged

update field name #49

2 commits merged into from
Mar 23, 2017

Conversation

wyzhcn
Copy link
Contributor

@wyzhcn wyzhcn commented Mar 23, 2017

No description provided.

@ghost
Copy link

ghost commented Mar 23, 2017

还需要将 toString() 函数改成

  return "\n" . __CLASS__ . " -- {$this->message} \n";

@wyzhcn
Copy link
Contributor Author

wyzhcn commented Mar 23, 2017

其实 $this->code 倒不会报错

@ghost
Copy link

ghost commented Mar 23, 2017

是不会报错,但是 $code 是没有值的,\Exception 类的构造函数 对其有一个默认值,所以最终其结果是 0,没有太多意义,去掉吧

@ghost
Copy link

ghost commented Mar 23, 2017

刚刚看到你已经换成了 http_code,这样也可以

@ghost ghost merged commit 4da7f02 into jpush:master Mar 23, 2017
@ghost
Copy link

ghost commented Mar 23, 2017

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant