phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Bug Report: Reference Counting Issue

Open ramath-x opened this issue 9 months ago • 2 comments

There is an issue with the reference count of the function [function_name]. The expected reference count should be 2, but it is currently returning 1.

Image Image

ramath-x avatar Feb 27 '25 04:02 ramath-x

Thank you for reporting the issue.

It looks like $list, or $form, or $form->getFormAuditResultsByRole() return type is not resolved, so the second $formAuditResult does not have a type.

Can you check the tooltip of $list , $form, and the last $formAuditResult ? If it does not have a type, the other features won't work either.

jakubmisek avatar Feb 28 '25 15:02 jakubmisek

Can you please check tool-tip on $form->getFormAuditResultsByRole() ? If it sees the correct type of function getFormAuditResultsByRole ? If it's not , then the variable $formAuditResult could not been inferred and is not counted.

jakubmisek avatar Aug 05 '25 11:08 jakubmisek