The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Meema\MediaConverter\Jobs\CreateVideoConversion: $id, $relations, $class, $keyBy
Loading history...
15
16
/**
17
* @var array
18
*/
19
private array $jobSettings;
20
21
/**
22
* @var int
23
*/
24
private int $mediaId;
25
26
/**
27
* @var array
28
*/
29
private array $tags;
30
31
/**
32
* Create a new job instance.
33
*
34
* @param array $jobSettings
35
* @param array $tags
36
* @param int $mediaId
37
*/
38
public function __construct($jobSettings, $tags = [], $mediaId = null)
The expression $mediaId of type integer|null is loosely compared to true; this is ambiguous if the integer can be 0. You might want to explicitly use !== null instead.
In PHP, under loose comparison (like ==, or !=, or switch conditions),
values of different types might be equal.
For integer values, zero is a special case, in particular the following
results might be unexpected:
0==false// true0==null// true123==false// false123==null// false// It is often better to use strict comparison0===false// false0===null// false