-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added Laravel 7 support #14
Conversation
kitloong
commented
Mar 9, 2020
- Added Laravel 7 support
- AlertDispatcher accept Throwable|Exception https://laravel.com/docs/7.x/upgrade#symfony-5-related-upgrades
@@ -9,6 +9,7 @@ | |||
use Kevincobain2000\LaravelAlertNotifications\MicrosoftTeams\Teams; | |||
use Kevincobain2000\LaravelAlertNotifications\Slack\ExceptionOccurredPayload; | |||
use Kevincobain2000\LaravelAlertNotifications\Slack\Slack; | |||
use Throwable; |
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.
if this is just used in @param
for the phpdoc, it is better to remove unwanted use or change the phpdoc settings
src/Dispatcher/AlertDispatcher.php
Outdated
public function __construct( | ||
Exception $exception, | ||
$exception, |
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.
Is there any issue with just using Throwable
here? Exception
implements the interface since PHP 7, which is the minimum supported PHP version for this package. If that's changed, I'd remove the phpdoc as it doesn't add much value. All of the variables are already type hinted and there's no description provided in the phpdoc for each of the variables.
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.
Thank you for your review.
Yes Throwable
is better. Throwable
should working fine in previous Laravel 5 & 6 too
I also updated readme accordingly and vup to 5.0
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.
Thanks I ll merge and push after @ikari7789 's approval
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