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

setTypedIndexes / error #96

Open
Link2Trials opened this issue Nov 1, 2023 · 1 comment
Open

setTypedIndexes / error #96

Link2Trials opened this issue Nov 1, 2023 · 1 comment

Comments

@Link2Trials
Copy link

Link2Trials commented Nov 1, 2023

In php 7.4 and 8.1 it worked well but version 4.5.1 does not work with php 8.2.12

When using 7.4- 8.1 the lat indexes are on by default: (encryptedRow)

array(2) {
["contact_ssn_last_four"]=>
array(2) {
["type"]=>
string(13) "3dywyifwujcu2"
["value"]=>
string(4) "2acb"
}
["contact_ssn"]=>
array(2) {
["type"]=>
string(13) "2iztg3wbd7j5a"
["value"]=>
string(8) "311314c1"
}
}

but in 4.5.1 not (maybe also earlier versions)

adding $ssn->setTypedIndexes(true); doesnt work

also we get an FATAL EXCEPTION: TypeError - Cannot access offset of type string on string somewhere in the library

EDIT: it only works when i put true as the third option in the contructor... then it works and the fatalexception is gone ... even when i editted the way i get the value from the array the fatal exception was there

@paragonie-security
Copy link
Contributor

These are simple getters and setters, and the property is defined as a bool, so it's not clear to us what the problem is.

Can you produce a minimum test case that causes this behavior?

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

No branches or pull requests

2 participants