-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade doctrine/inflector
to ^2.0
.
#2100
Conversation
src/utils/src/Pluralizer.php
Outdated
/** | ||
* Get the inflector instance. | ||
* | ||
* @return Inflector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成强类型
src/utils/src/Pluralizer.php
Outdated
* | ||
* @return Inflector | ||
*/ | ||
public static function inflector() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用 getInflector() 是不是语义更清晰一些呢?
src/utils/src/Pluralizer.php
Outdated
/** | ||
* @var null|Inflector | ||
*/ | ||
public static $inflector; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果 getInflector 设置了强类型返回,那这里的 public 就应该使用 protected 了,并提供 setInflector() 的方法约束参数类型
好的,我今天改一下 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/merge
[This message is created by hyperf-bot] [APPROVAL NOTIFIER] This pull-request is APPROVED This pull-request has been approved by: huangzhhui |
No description provided.