Skip to content

PHP8.4 deprecations: implicitly nullable parameter #53

Description

@sneakyvv

Running tests gives a bunch of deprecations; for example:

Deprecated: Klaviyo\Integration\Model\UseCase\ScheduleBackgroundJob::scheduleSubscriberSyncJob(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead in. ../vendor/klaviyo/shopware-klaviyo/src/Model/UseCase/ScheduleBackgroundJob.php on line 136

public function scheduleSubscriberSyncJob(
        array $subscriberIds,
        string $parentJobId,
        Context $context,
        string $name = null
    ): void {

should become

public function scheduleSubscriberSyncJob(
        array $subscriberIds,
        string $parentJobId,
        Context $context,
        ?string $name = null
    ): void {

See https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions