Skip to content

preg_match deprication, null point prevention #10

@erth5

Description

@erth5

Warning:
preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

Resolution:
vendor\stepanenko3\nova-cards\src\Http\Controllers\ScheduledJobsController.php

     20 $nextDueDate = $this->getNextDueDateForEvent($event, $timezone);
     21
  +  22 $command = $event->command ?? '';
     23
+-   24 preg_match("/artisan.*?\s(.*)/", $command, $matches);


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions