Skip to content

Conversation

@mbabker
Copy link
Contributor

@mbabker mbabker commented Dec 7, 2022

…eter attribute

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@mbabker mbabker force-pushed the no-promotion-for-sensitive-parameters branch from 6ad2efb to 612ba87 Compare December 7, 2022 15:16
…otionRector.php

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@TomasVotruba TomasVotruba merged commit b8aff08 into rectorphp:main Dec 7, 2022
@TomasVotruba
Copy link
Member

Thank you 👏

@mbabker mbabker deleted the no-promotion-for-sensitive-parameters branch December 7, 2022 15:28
@TimWolla
Copy link

TimWolla commented Dec 8, 2022

FWIW: Putting the #[\SensitiveParameter] attribute onto promoted properties should be fine as of php/php-src#9661.

See: https://3v4l.org/laljt

@samsonasik
Copy link
Member

The actual bug seems the Attribute removed during converting to property promotion, which should be kept, I will re-open the 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.

Incorrect behavior of ClassPropertyAssignToConstructorPromotionRector with SensitiveParameter attribute

4 participants