-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improved code quality #188
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 6.0 #188 +/- ##
============================================
- Coverage 99.13% 99.11% -0.03%
+ Complexity 440 439 -1
============================================
Files 52 52
Lines 1037 1013 -24
============================================
- Hits 1028 1004 -24
Misses 9 9 ☔ View full report in Codecov by Sentry. |
|
ab922ac
to
27cd57c
Compare
5b3fa60
to
3007a29
Compare
3007a29
to
d8e394e
Compare
I think we should move all enums to the same folder/namespace. However this is a BC. I suggest
|
I think, since adding types and enums to the whole code base is already a change with big impact, I would schedule code restructuring (e.g. where to place classes) for 7.0. From consumer perspective, the good thing for now, that the baked enums on using works like the constants and mabe classes before, you don't need to change your code when upgrading. And remember: 6.0 cannot trigger new deprecations ;) (ok, except for the one in the BigBlueButton constructor, which was needed to catch typing issues when the class is initialized without environment). |
To add enums here is practical, I think, we cannot introduce and use them in 5.x, since that one must still support PHP 7.4. In 5.x and 6.1, it also would mean being a breaking change. In theory, it could introduce a few breaking changes, therefor it fits perfectly into a major release. |
I opened #197 to show my proposed solution to move all enums to a new namespace first, allowing us to convert them to native enums later |
@SamuelWei I've rebased this against master. When this was reviewed, I think we can lift of version 6.0 🚀 after ensuring all deprecated features were removed from 6.0 branch. |
@SamuelWei Interested in your thoughts ;) .
fix #177
fix #162