Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated class instantiation warnings #295

Conversation

kimpepper
Copy link
Collaborator

@kimpepper kimpepper commented Feb 10, 2025

Description

We are triggering deprecation warnings in the Client as the deprecated classes are being instantiated. Instead we can just trigger a deprecation warning when the deprecated methods in the Client are called.

This has the benefit of removing some of the phpstan ignored warnings in the baseline.

Issues Resolved

Resolves #283

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Kim Pepper <[email protected]>
@kimpepper kimpepper force-pushed the fix-deprecation-instantiation-warnings branch from 1e822b5 to d68c725 Compare February 11, 2025 00:04
@kimpepper kimpepper force-pushed the fix-deprecation-instantiation-warnings branch from d11b0c2 to a723a3a Compare February 11, 2025 04:16
@kimpepper kimpepper changed the title Fix deprecation instantiation warnings Fix deprecated class instantiation warnings Feb 11, 2025
@kimpepper kimpepper merged commit ce3d284 into opensearch-project:main Feb 11, 2025
46 checks passed
@kimpepper kimpepper deleted the fix-deprecation-instantiation-warnings branch February 11, 2025 07:24
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.

[BUG] Client Builder is Deprecated
2 participants