Skip to content

fix: declare httpClient property to eliminate PHP deprecation warning#15

Open
SteelWagstaff wants to merge 1 commit into
thoth-pub:mainfrom
SteelWagstaff:fix/deprecation-dynamic-property
Open

fix: declare httpClient property to eliminate PHP deprecation warning#15
SteelWagstaff wants to merge 1 commit into
thoth-pub:mainfrom
SteelWagstaff:fix/deprecation-dynamic-property

Conversation

@SteelWagstaff
Copy link
Copy Markdown

@SteelWagstaff SteelWagstaff commented May 20, 2026

Add explicit type declaration for the $httpClient property to prevent the "Creation of dynamic property" deprecation warning in PHP 8.2+.

This property was previously assigned without declaration in the constructor, which triggers a deprecation warning. Declaring it as a typed property resolves this issue.

Resolves #16

…ning

Adds explicit type declaration for the $httpClient property to prevent
the "Creation of dynamic property" deprecation warning in PHP 8.2+.

This property was previously assigned without declaration in the constructor,
which triggers a deprecation warning. Declaring it as a typed property resolves this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.2+ Deprecation: Declare $httpClient property

1 participant