Skip to content

feat: upgrade to PHP 8.1 enums and optimize code quality#2

Merged
cclilshy merged 1 commit intocloudtay:mainfrom
BadJacky:feat/php-8.1-enums-and-code-optimization
Mar 22, 2025
Merged

feat: upgrade to PHP 8.1 enums and optimize code quality#2
cclilshy merged 1 commit intocloudtay:mainfrom
BadJacky:feat/php-8.1-enums-and-code-optimization

Conversation

@BadJacky
Copy link
Contributor

  • Refactor Status class from constants to PHP 8.1+ enum type

  • Add getMessage() and getMessageForCode() methods to replace static MESSAGES array

  • Fix duplicate Content-Length check in Connection class

  • Use (int) typecasting instead of intval() for better performance

  • Improve readability of conditional assignment statements

  • Update WaitGroup import path

  • Standardize code formatting and alignment

- Refactor Status class from constants to PHP 8.1+ enum type

- Add getMessage() and getMessageForCode() methods to replace static MESSAGES array

- Fix duplicate Content-Length check in Connection class

- Use (int) typecasting instead of intval() for better performance

- Improve readability of conditional assignment statements

- Update WaitGroup import path

- Standardize code formatting and alignment
@BadJacky
Copy link
Contributor Author

@cclilshy review please

@cclilshy cclilshy merged commit 8e07e8c into cloudtay:main Mar 22, 2025
5 of 8 checks passed
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