Avoid creating dynamic variable

Created on 19 January 2023, over 1 year ago
Updated 19 May 2024, 28 days ago

Problem/Motivation

When reviewing the module code, found reference to usage of dynamic variables in file SyncFilesBatch.php. Class class SyncFilesBatch {...} initialises 3 property variables without defining them in the constructor line 27,28 and 29. There is a discussion going to deprecate this behaviour from PHP 8.2 and remove from PHP 9.0 More Info.

Steps to reproduce

Check the code in file SyncFilesBatch.php

Proposed resolution

Define the variables with proper data types.

Remaining tasks

Create MR and TEST

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India vishwac9

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024