Skip to content

Dynamic property deprecated error in ToolkitServiceParameter.php #189

@alanseiden

Description

@alanseiden

A developer writes:
We ran into trouble with an RPG program call in PHP 8.2.

Exception: PHP ERROR Exception: [Creation of dynamic property ToolkitApi\\PackedDecParam::$returnParameter is deprecated][8192]; File: [\/QOpenSys\/chroots\/php8_2\/QOpenSys\/pkgs\/lib\/php\/ToolkitApi\/ToolkitServiceParameter.php]; Line Number: [66]

The constructor is setting a returnParameter that isn't declared. I added this below line below 23
protected $returnParameter;

(This is only a deprecation, but their framework elevated it into an exception. We should correct the issue now.)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions