Introduce Assertion (302)
Old Code
<?php
if ( $this->discountRate ) {
$base = $base - ($this->discountRate * $base);
}
New Code
<?php
assert($this->discountRate > 0);
if ( $this->discountRate ) {
$base = $base - ($this->discountRate * $base);
}