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

Encryption of nullable value #4

Open
fabianoroberto opened this issue Jan 7, 2020 · 1 comment · May be fixed by #5
Open

Encryption of nullable value #4

fabianoroberto opened this issue Jan 7, 2020 · 1 comment · May be fixed by #5

Comments

@fabianoroberto
Copy link
Contributor

This line, fail if $value is null

protected function hasMarker(string $value) : bool

Argument 1 passed to Shapecode\NYADoctrineEncryptBundle\Encryption\EntityEncryption::
hasMarker() must be of the type string, null given, called in /vendor/shapecode/nya-doctrine-encrypt-bundle/src/Encryption/EntityEncryption.php on line 93

Solution are:

  • check value before passing to that function
  • change signature of method in protected function hasMarker(?string $value) : bool
@nicklog
Copy link
Contributor

nicklog commented Jan 11, 2020

Hey, would you create a pull request? That would be great. Greetings.

fabianoroberto pushed a commit to paneedesign/nya-doctrine-encrypt-bundle that referenced this issue Jan 13, 2020
fabianoroberto pushed a commit to paneedesign/nya-doctrine-encrypt-bundle that referenced this issue Jan 13, 2020
@fabianoroberto fabianoroberto linked a pull request Jan 13, 2020 that will close this 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 a pull request may close this issue.

2 participants