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
Commit f41408c
Browse filesBrowse the repository at this point in the historyBrowse files
fix: resolve mago analyze type-safety findings in module source
Fix the type errors mago analyze reports against a full Magento install:
- CheckCommand: cast ini_get('memory_limit') (string|false declared
string); use the PHP_VERSION constant instead of phpversion(); read the
MySQL version via fetchOne('SELECT VERSION()') instead of from(null).
- Type loose framework return values via inline @var (getPaths() ->
array<string,string>, getAllBlocks() -> BlockInterface[]).
- Cast mixed operands/arguments: theme loop index, hrtime() metrics,
stat() mode, and the getOption() flags used in a boolean expression.
- InspectorHints: widen render()'s $dictionary param to match the parent
TemplateEngineInterface; cast the BP constant to string.
- Drop redundant (string) casts and an obsolete @var docblock.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments