Skip to content

strlen(): Passing null to parameter #1 ($string) of type string is deprecated #195

@dloused

Description

@dloused

Vapid keys generation fails (Laravel 8 / PHP 8.1)

Noone faces this? Did not find a relevant issue...

strlen(): Passing null to parameter #1 ($string) of type string is deprecated

at vendor/laravel-notification-channels/webpush/src/VapidKeysGenerateCommand.php:59
     55▕     protected function setKeysInEnvironmentFile($keys)
     56▕     {
     57▕         $currentKeys = $this->laravel['config']['webpush.vapid'];
     58▕ 
  ➜  59▕         if (strlen($currentKeys['public_key']) !== 0 && (! $this->confirmToProceed())) {
     60▕             return false;
     61▕         }
     62▕ 
     63▕         $this->writeNewEnvironmentFileWith($keys);

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