Skip to content

Add assertion safeguards and update code-transformer to 1.3.8 - #100

Merged
WalterWoshid merged 3 commits into
masterfrom
chore/assertions-and-code-transformer
Nov 13, 2026
Merged

WalterWoshid merged 3 commits into
masterfrom
chore/assertions-and-code-transformer

Conversation

@WalterWoshid

Copy link
Copy Markdown
Contributor
  • Replace native assertions with explicit exceptions and PHPUnit checks.
  • Forbid native assert() calls through Mago.
  • Require code-transformer 1.3.8 and align inherited signatures and type annotations.

Mago passes. Tests have no failures on PHP 8.4/8.5; 15 pre-existing incomplete tests remain.

@WalterWoshid WalterWoshid added the enhancement 🎆 New feature or request label Nov 13, 2026
@WalterWoshid WalterWoshid self-assigned this Nov 13, 2026
@codecov-commenter

codecov-commenter commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.06%. Comparing base (0fe8784) to head (a240821).

Files with missing lines Patch % Lines
src/Core/Transform/ProxiedClassModifier.php 25.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #100      +/-   ##
============================================
- Coverage     93.30%   93.06%   -0.25%     
- Complexity      343      345       +2     
============================================
  Files            38       38              
  Lines          1105     1110       +5     
============================================
+ Hits           1031     1033       +2     
- Misses           74       77       +3     
Flag Coverage Δ
os-ubuntu-latest_php-8.1 93.06% <50.00%> (-0.25%) ⬇️
os-ubuntu-latest_php-8.2 93.06% <50.00%> (-0.25%) ⬇️
os-ubuntu-latest_php-8.3 93.06% <50.00%> (-0.25%) ⬇️
os-ubuntu-latest_php-8.4 93.06% <50.00%> (-0.25%) ⬇️
os-ubuntu-latest_php-8.5 93.06% <50.00%> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@WalterWoshid
WalterWoshid merged commit 48f6ca6 into master Nov 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🎆 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants