I only skimmed through it but saw first element access of array and string arrays. Jfyi in most cases the generic approach is to handle all of them and union the results then 😊
Originally posted by @herndlm in #146 (comment)
Loop through all elements in the list of constant strings/array:
if (count($type->getConstantStrings()) === 0) {
return []; // no constant strings
}
foreach ($type->getConstantStrings() as $constantString) {
// do something with each value
}
Originally posted by @herndlm in #146 (comment)
Loop through all elements in the list of constant strings/array: