phptools-docs
phptools-docs copied to clipboard
Bug Report: Reference Counting Issue
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.
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.
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.