dutchiexl / BehatHtmlFormatterPlugin

This is a behat plugin to generate HTML reports
MIT License
112 stars 117 forks source link

Update Behat2Renderer.php for php 7.2 #97

Closed rjb-dev closed 6 years ago

rjb-dev commented 6 years ago

Behat2Renderer currently uses count() to check for null, which causes a lot of warnings in php7.2. This patch re-writes those lines to check for null separately and avoid having all the warnings.

donkidd commented 6 years ago

Wouldn't it be better to just initialize the variable in BehatHTMLFormatter to be an empty array instead of doing all of this?