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

[php2cpg] Support type inference for class properties #4511

Open
icyblu3 opened this issue Apr 30, 2024 · 0 comments
Open

[php2cpg] Support type inference for class properties #4511

icyblu3 opened this issue Apr 30, 2024 · 0 comments

Comments

@icyblu3
Copy link

icyblu3 commented Apr 30, 2024

Is your feature request related to a problem? Please describe.
Joern currently does not seem to be able to determine the type of a Class property in PHP, giving "ANY" as the typeFullName in the corresponding node.

Describe the solution you'd like
The type information of a class property is captured in the output json file from php-parse. Would it be possible to propagate this information over to the CPG?

Additional context
See code snippet and corresponding Joern output below
Code:
class MissingPropertyType {
public int $poc;
}

Joern output:
image

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

1 participant