Skip to content

Commit 96d70b1

Browse files
committed
Order union type hint as object|array|null to satisfy psr2r-sniffer
1 parent aa57d0b commit 96d70b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/Table/QueuedJobsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function createConfig(): JobConfig {
210210
*
211211
* @return \Queue\Model\Entity\QueuedJob Saved job entity (or the existing pending entity if `unique` deduped).
212212
*/
213-
public function createJob(string $jobTask, array|object|null $data = null, array|JobConfig $config = []): QueuedJob {
213+
public function createJob(string $jobTask, object|array|null $data = null, JobConfig|array $config = []): QueuedJob {
214214
if (!$config instanceof JobConfig) {
215215
$config = $this->createConfig()->fromArray($config);
216216
}

0 commit comments

Comments
 (0)