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

Update getPassphrase PHPDoc #422

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Update getPassphrase PHPDoc #422

merged 1 commit into from
Sep 29, 2020

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Sep 27, 2020

The property passphrase can be null or a string.
I propose to indicate it in the header.

If you really want to return a string, the constructor could be changed in favour of public function __construct($content, $passphrase = '')
Let me know if you prefer the later.

src/Signer/Key.php Outdated Show resolved Hide resolved
Copy link
Owner

@lcobucci lcobucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Spomky!

Making sure we don't have to handle null cases while using it.
@lcobucci lcobucci dismissed Ocramius’s stale review September 29, 2020 10:20

Code updated, thanks for the review @Ocramius

@lcobucci lcobucci merged commit 63b0d8b into lcobucci:3.4 Sep 29, 2020
@Spomky Spomky deleted the patch-1 branch September 29, 2020 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants