studiometa / twig-toolkit

🔧 A set of useful extension and components for Twig
MIT License
9 stars 0 forks source link

Add a check on html::renderClass to avoid warnings #9

Closed perruche closed 2 years ago

perruche commented 2 years ago

When html_classes is use with empty array

codecov[bot] commented 2 years ago

Codecov Report

Merging #9 (3463342) into develop (a54480f) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop       #9      +/-   ##
=============================================
+ Coverage      99.12%   99.13%   +0.01%     
- Complexity        39       40       +1     
=============================================
  Files              5        5              
  Lines            114      116       +2     
=============================================
+ Hits             113      115       +2     
  Misses             1        1              
Flag Coverage Δ
unittests 99.13% <100.00%> (+0.01%) :arrow_up:

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

Impacted Files Coverage Δ
src/Helpers/Html.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a54480f...3463342. Read the comment docs.

perruche commented 2 years ago

PHPStan errors seems to be related to this issue