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

Make #17151 easier to read #1

Closed
wants to merge 1 commit into from
Closed

Make #17151 easier to read #1

wants to merge 1 commit into from

Conversation

tillkruss
Copy link
Owner

Made laravel#17151 easier to read IMO.

@tillkruss tillkruss closed this Jan 9, 2017
tillkruss pushed a commit that referenced this pull request Jan 27, 2017
Add hasMiddlewareGroup and getMiddlewareGroups methods
@tillkruss tillkruss deleted the patch-1 branch April 16, 2017 18:06
tillkruss pushed a commit that referenced this pull request Jan 30, 2018
tillkruss pushed a commit that referenced this pull request Aug 13, 2019
Allow setting additional smtp config options
tillkruss pushed a commit that referenced this pull request Jan 21, 2022
* Update CallQueuedClosure to catch Throwable/Error

- Laravel Version: 8.26.1
- PHP Version: 8.0.0

### Description:
Queued closures that throw an Error will throw again when handled by CallQueuedClosure@failed, as its currently type-hinted for Exceptions only.

### Steps To Reproduce:
```php
Bus::chain([
    function () {
        SomeClassThatDoesntExist::throw();
    }
])->dispatch();
```

The above will first throw `Error Class "SomeClassThatDoesntExist" not found`. The queue will attempt to handle it and throw again: `TypeError
Illuminate\Queue\CallQueuedClosure::failed(): Argument #1 ($e) must be of type Exception, Error given, called in /var/task/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php on line 261`

* style: styleci fixes

* Update CallQueuedClosure.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
tillkruss pushed a commit that referenced this pull request Jan 21, 2022
* Ensure $prefix is a string

Because PHP 8.1 will no longer allow it and throw:
`rtrim(): Passing null to parameter #1 ($string) of type string is deprecated`

* Update prefix() PHPDoc

* Update Route.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
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.

1 participant