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

Add SensitiveParameter stub #1511

Merged
merged 3 commits into from
Jul 13, 2022
Merged

Add SensitiveParameter stub #1511

merged 3 commits into from
Jul 13, 2022

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 12, 2022

see https://stitcher.io/blog/new-in-php-82#redact-parameters-in-back-traces-rfc

refs https://wiki.php.net/rfc/redact_parameters_in_back_traces

the RFC mentions another class involved, which is SensitiveParameterValue.
it will only be needed at runtime - as a place-holder for the sensitive value beeing masked, and therefore no additional stubs are required regarding that one.

@ondrejmirtes
Copy link
Member

That test could never fail, it's in a wrong class. It's parameter attribute, not class attribute.

@staabm
Copy link
Contributor Author

staabm commented Jul 12, 2022

🤦 - good catch. moved the test.

@ondrejmirtes ondrejmirtes merged commit 393faf4 into phpstan:1.8.x Jul 13, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the sensitive branch July 13, 2022 10:47
@staabm
Copy link
Contributor Author

staabm commented Aug 25, 2022

for posterity: this needed an additional fix in ondrejmirtes/BetterReflection@7f99a91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants