-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow ^2.0 and ^3.0 of psr/log #127
Conversation
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.
LGTM, I just had a non-blocking issue if you want to fix it.
src/lib/PubSub/CloudEvent.php
Outdated
use LogicException; | ||
|
||
/** | ||
* Class CloudEvent | ||
* @package Dapr\PubSub | ||
*/ | ||
#[Deprecated(since: '1.3.0', replacement: \CloudEvents\V1\CloudEvent::class)] |
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.
Nice! It may also be worth adding a @deprecated
to the docblock so other tools pick it up (like psalm/phpstan) that maybe don't know about phpstorm's attribute.
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.
Definitely! I'll add that right away.
However I didn't really mean to push the CloudEvent replacement into the same PR as the psr/log updates 😅
@withinboredom The psr/log update should now be good to go. I'll send another PR for the CloudEvents replacement |
Codecov Report
@@ Coverage Diff @@
## main #127 +/- ##
============================================
- Coverage 75.99% 73.48% -2.51%
Complexity 562 562
============================================
Files 69 72 +3
Lines 1791 1746 -45
============================================
- Hits 1361 1283 -78
- Misses 430 463 +33
Continue to review full report at Codecov.
|
I expect the integration tests to fail to build again, but while I fix them, and you're in the composer.json file, feel free to add yourself to the authors key :) |
Finally some public contributions besides fixing typos and updating docs 🔥 :-) |
Signed-off-by: Hendrik Heil <[email protected]>
Signed-off-by: Hendrik Heil <[email protected]>
@withinboredom Same here, just added my signature so should be ready for merging. |
Description
This PR seeks to add support for API-compatible versions of psr/log
Issue reference
#126
Checklist