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

优化代码,使用PHP8.0新语法 #471

Merged
merged 4 commits into from
Jun 27, 2023
Merged

优化代码,使用PHP8.0新语法 #471

merged 4 commits into from
Jun 27, 2023

Conversation

YepYuYu
Copy link
Contributor

@YepYuYu YepYuYu commented Jun 27, 2023

No description provided.

* isset改为??
* ?:null改为?->
* 数值比对使用max
* 获取布尔值不使用三元表达式,改为直接类型转换
@liu21st liu21st merged commit 35787e6 into top-think:3.0 Jun 27, 2023
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