Skip to content

v3.2.0

Choose a tag to compare

@spawnia spawnia released this 20 Jan 15:25
· 11 commits to master since this release
8b9e885

Added

  • Add IfThrowToCoalesceThrowRector to transform null-check-then-throw patterns to use the null coalesce operator with throw expression #6
  • Add ElvisToCoalesceRector to convert elvis operator (?:) to null coalesce (??) when the expression can only be falsy via null #6

Changed

  • Select FirstClassCallableRector or ArrayToFirstClassCallableRector based on Rector version #6

Fixed

  • Rector 1.x compatibility for IfThrowToCoalesceThrowRector #6