Skip to content

Commit

Permalink
Fix FlushFailedCommand method name and argument in upgrade guide (lar…
Browse files Browse the repository at this point in the history
…avel#7635)

* Fix wrong method name for FailedJobProvider

* Use hours
  • Loading branch information
tonysm authored Jan 31, 2022
1 parent f6733c5 commit 3e447f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,14 +541,14 @@ In new Laravel applications, the `resources/lang` directory is now located in th

Laravel's dependency on `opis/closure` has been replaced by `laravel/serializable-closure`. This should not cause any breaking change in your application unless you are interacting with the `opis/closure` library directly. In addition, the previously deprecated `Illuminate\Queue\SerializableClosureFactory` and `Illuminate\Queue\SerializableClosure` classes have been removed. If you are interacting with `opis/closure` library directly or using any of the removed classes, you may use [Laravel Serializable Closure](https://github.com/laravel/serializable-closure) instead.

#### The Failed Job Provider `failed` Method
#### The Failed Job Provider `flush` Method

**Likelihood Of Impact: Low**

The `flush` method defined by the `Illuminate\Queue\Failed\FailedJobProviderInterface` interface now accepts an `$age` argument which determines how old a failed job must be (in days) before it is flushed by the `queue:flush` command. If you are manually implementing the `FailedJobProviderInterface` you should ensure that your implementation is updated to reflect this new argument:
The `flush` method defined by the `Illuminate\Queue\Failed\FailedJobProviderInterface` interface now accepts an `$hours` argument which determines how old a failed job must be (in hours) before it is flushed by the `queue:flush` command. If you are manually implementing the `FailedJobProviderInterface` you should ensure that your implementation is updated to reflect this new argument:

```php
public function flush($age = null);
public function flush($hours = null);
```

### Session
Expand Down

0 comments on commit 3e447f4

Please sign in to comment.