Skip to content

Encryption of nullable value #4

@fabianoroberto

Description

@fabianoroberto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions