Undefined variable: $killable

Created on 7 May 2024, 8 months ago

Problem/Motivation

According to phanstan report I found the following issue:

Line   ultimate_cron/src/Plugin/ultimate_cron/Launcher/SerialLauncher.php
 ------ --------------------------------------------------------------------
  28     Undefined variable: $killable

Proposed resolution

As class Drupal\ultimate_cron\Lock\Lock has property $killable it has the meaning to change condition from $lock->{$killable} to $lock-> $lock->$killable.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇾Belarus alena_stanul

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024