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

PHPUnit 6 compatibility #1

Merged
merged 1 commit into from
May 17, 2017
Merged

PHPUnit 6 compatibility #1

merged 1 commit into from
May 17, 2017

Conversation

deleugpn
Copy link
Owner

No description provided.

@deleugpn deleugpn merged commit 678cd20 into patch-1 May 17, 2017
deleugpn pushed a commit that referenced this pull request Feb 22, 2018
deleugpn added a commit that referenced this pull request Dec 17, 2020
deleugpn pushed a commit that referenced this pull request Feb 15, 2021
* 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 <[email protected]>
deleugpn pushed a commit that referenced this pull request Feb 15, 2021
* 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 <[email protected]>
deleugpn pushed a commit that referenced this pull request Aug 24, 2022
* Update Encrypter.php

enforce decrypt payload to string, fix for below error

`base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php on line 208`

* Update Encrypter.php

Co-authored-by: Taylor Otwell <[email protected]>
deleugpn pushed a commit that referenced this pull request Jul 10, 2023
…sname-hook

Allow hooking the queueable collection logic
deleugpn pushed a commit that referenced this pull request Dec 30, 2023
…laravel#49474)

* test: validateJson should return false when value is null

Fails with Laravel Framework 10.38.2 in PHP < 8.3, introduced in laravel#49413

* fix: validateJson should return false when value is null

Return false when $value is null.

Avoid TypeError: json_validate(): Argument #1 ($json) must be of type string, null given, when using symfony/polyfill-php83 in PHP < 8.3.

Avoid deprecation warning: json_validate(): Passing null to parameter #1 ($json) of type string is deprecated, when using PHP 8.3.

---------

Co-authored-by: Rogelio Jacinto <[email protected]>
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