You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Analysis] Result.php: findings deferred to baseline #66
unused-property: $numberOfRows is declared but never read or written. Present since the initial laminas-db import (389b937); confirmed via full file history it is not a regression introduced by this PR.
missing-constructor: $resource (mysqli|mysqli_result|mysqli_stmt) has no default value and no constructor; it's set via initialize() instead. A nullable-plus-guard rewrite was already shown not to resolve cleanly in Statement.php (Statement.php uninitialized-property findings need local-variable narrowing rewrite #61) due to mago not retaining property null-narrowing across statements; the same limitation applies here.
possibly-undefined-int-array-index/mixed-array-assignment in the loadDataFromMysqliStatement() dereference loop (for ($i = 0, $count = count(...); $i < $count; $i++)): mago cannot correlate the loop bound with the size of the parallel keys/values arrays it iterates.
These findings will be captured in a mago baseline rather than fixed or suppressed inline.
Closing as resolved. src/Result.php is captured in the committed analysis-baseline.toml as unused-property (\) and missing-constructor (\), per the disposition recorded in this issue.
Activity
mago analyze: fix real bugs and tighten types in Result.php
tyrsson commentedon Oct 7, 2026
Closing as resolved.
src/Result.phpis captured in the committedanalysis-baseline.tomlasunused-property(\) andmissing-constructor(\), per the disposition recorded in this issue.