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

Upgrade doctrine/inflector to ^2.0. #2100

Merged
merged 3 commits into from
Jul 13, 2020
Merged

Conversation

limingxinleo
Copy link
Member

No description provided.

/**
* Get the inflector instance.
*
* @return Inflector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改成强类型

*
* @return Inflector
*/
public static function inflector()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 getInflector() 是不是语义更清晰一些呢?

/**
* @var null|Inflector
*/
public static $inflector;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果 getInflector 设置了强类型返回,那这里的 public 就应该使用 protected 了,并提供 setInflector() 的方法约束参数类型

@limingxinleo
Copy link
Member Author

好的,我今天改一下

Copy link
Member

@huangzhhui huangzhhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/merge

@huangzhhui
Copy link
Member

[This message is created by hyperf-bot]

[APPROVAL NOTIFIER] This pull-request is APPROVED

This pull-request has been approved by: huangzhhui

@huangzhhui huangzhhui merged commit 8698275 into hyperf:master Jul 13, 2020
@limingxinleo limingxinleo deleted the 2.0-utils branch July 13, 2020 05:08
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.

2 participants