Skip to content

4.4

Choose a tag to compare

@jorgecc jorgecc released this 04 Feb 13:53
· 84 commits to master since this release

4.4 2022-02-04

  • Elevating compatibility level to PHP >=7.2.5. Why? I am pairing the compatibility with Composer (Composer 2.2 requires PHP 7.2.5). PHP 7.2 is not supported officially but I will support it for a couple of years more. Older versions of BladeOne will still support PHP <7.2
  • Type hinting. The "new versions" (since PHP 7.1) of PHP include type hinting in the arguments and in the value returned by a method. However, it affects the performance (type hinting validates values). I add type hinting for return values but I can't add type hinting for the arguments without affecting the performance. Instead, I will stay with PHPDOCS. I must remark this library aims for performance.
  • CodeSniffer is out. I use PHPStorm and it does a better job without impacting the performance. Also, this code wasn't compatible with CodeSniffer, for example, the method compile_e() that sadly, I can't change its name.
  • A lot of cleanups. However, it didn't change the logic of any method.