bottledcode / swytch-framework

The Smart PHP Framework
https://framework.getswytch.com/
MIT License
20 stars 0 forks source link

keep track of original attr name #52

Closed withinboredom closed 12 months ago

withinboredom commented 12 months ago

When a parameter to render() is not lower cased, parameters aren't passed from attributes. A good example:

echo "<Login redirectTo='{{$host}}' />";

would result in trying to call render($redirectto) {} instead of render($redirectTo) {}.

This actually opens up an obvious optimization, but that is out of scope here.

codecov[bot] commented 12 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (b4d3c68) 32.43% compared to head (9742bbf) 32.52%.

Files Patch % Lines
src/Template/Parser/StreamingCompiler.php 60.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #52 +/- ## ============================================ + Coverage 32.43% 32.52% +0.09% Complexity 538 538 ============================================ Files 52 51 -1 Lines 1819 1823 +4 ============================================ + Hits 590 593 +3 - Misses 1229 1230 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.