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

#[SensitiveParameter] Attribute Polyfill #1

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

IlicMiljan
Copy link
Owner

Description of Changes

Added a polyfill for the #[SensitiveParameter] attribute to ensure the codebase is forward-compatible with PHP 8.2 while supporting earlier versions. This polyfill will allow using the #[SensitiveParameter] attribute in environments running PHP versions earlier than 8.2 without causing syntax errors.

How Has This Been Tested?

  • Environment: Tested on 8.0 in local environment.
  • Method: Ensured that declaring a function parameter with the #[SensitiveParameter] attribute does not cause syntax errors or unexpected behavior. Ran existing unit tests to verify that adding the polyfill does not affect other functionalities.
  • Results: All tests passed, and the polyfill behaved as expected, mimicking the presence of the SensitiveParameter attribute in environments below PHP 8.2.

Checklist

Please confirm the following:

  • I have tested my changes and corrected any errors.
  • I have documented my changes if necessary.

@IlicMiljan IlicMiljan changed the title Add #[SensitiveParameter] Attribute Polyfill #[SensitiveParameter] Attribute Polyfill Mar 8, 2024
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@IlicMiljan IlicMiljan merged commit a20e325 into main Mar 8, 2024
1 check passed
@IlicMiljan IlicMiljan deleted the add-sensitive-parameter-polyfill branch March 8, 2024 21:18
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.

2 participants