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

Added Laravel 7 support #14

Merged
merged 4 commits into from
Mar 10, 2020
Merged

Added Laravel 7 support #14

merged 4 commits into from
Mar 10, 2020

Conversation

kitloong
Copy link
Collaborator

@kitloong kitloong commented Mar 9, 2020

  1. Added Laravel 7 support
  2. 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;
Copy link
Owner

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

public function __construct(
Exception $exception,
$exception,
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link
Owner

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

Copy link
Collaborator

@ikari7789 ikari7789 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevincobain2000 kevincobain2000 merged commit c0ee516 into master Mar 10, 2020
@andrew-miller-rakuten andrew-miller-rakuten deleted the feature/laravel-7 branch March 15, 2024 02:30
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.

3 participants