The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Bavix\Entry\Jobs\BulkWriter: $id, $relations, $class, $keyBy
Loading history...
16
17
/**
18
* @var Entry
19
*/
20
protected $entry;
21
22
/**
23
* @var array[]
24
*/
25
protected $data;
26
27
/**
28
* Create a new job instance.
29
*
30
* @param Entry $entry
31
* @param array[] $data
32
* @return void
33
*/
34
public function __construct(Entry $entry, ?array $data = null)
The expression $this->data of type array<mixed,array> is implicitly converted to a boolean; are you sure this is intended? If so, consider using ! empty($expr) instead to make it clear that you intend to check for an array without elements.
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an
empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using empty(..) or !empty(...) instead.
Loading history...
52
\array_walk_recursive($this->data, static function (&$value) {