Skip to content

Parsing of concatenated constants in classes fails #313

@davidsneighbour

Description

@davidsneighbour

Error Message:

(Unexpected expression type 'PhpParser\Node\Expr\BinaryOp\Concat' for value in line x of file 'y' [UnitCollectingVisitor.php:460])

Parsed line:

const FIELDS = 'userid,accountingid,title,modified,GivenName,FamilyName,' . 'DateOfBirth,Nationality,PassportNumber,ExpiryOfPassport,' . 'ExpiryOfEntrystamp,Gender,PlaceOfIssue,PlaceOfBirth,' . 'CityOfResidence,CountryOfResidence,LastEmbarkation,' . 'DateOfLastEntry,CurrentVisaNo,VisaType,VisaValidUntil,' . 'AddressInThailand,Occupation,MobilePhone,Email,ContactName,' . 'ContactTelephone,ContactEmail,ContactRelationship,BloodType,' . 'Allergies,PreviousSurgeries,PermanentSicknesses,MedicineTaken,' . 'FurtherNotes,healthinsurance,Comment,is_customer,is_vendor,' . 'is_button,is_active,is_deleted';

the classname::FIELDS is working as expected and PHP does not complain about the concatenation. Is this a bug in phpdox or a "philosophic collision"?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions