Skip to content

Import global functions and drop assert() calls - #60

Merged
delacry merged 1 commit into
0.2.xfrom
fix/import-functions-drop-asserts
Oct 30, 2026
Merged

delacry merged 1 commit into
0.2.xfrom
fix/import-functions-drop-asserts

Conversation

@delacry

@delacry delacry commented Oct 30, 2026

Copy link
Copy Markdown
Member

Global functions are now imported with use function, enforced by phpcs. Unqualified calls inside a namespace are resolved at runtime, which keeps PHP from compiling count, strlen, is_*, in_array and similar to their dedicated opcodes.

The two assert() calls in IntKeyValueStore become @var annotations. Assertions are compiled out in production, so they only served static analysis.

@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@delacry
delacry merged commit 557d4cc into 0.2.x Oct 30, 2026
7 checks passed
@delacry
delacry deleted the fix/import-functions-drop-asserts branch November 3, 2026 18:30
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

Successfully merging this pull request may close these issues.

1 participant