Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Found a weird thing in PHPStorm. It doesn't like it when you try to "add" (using the plus sign) the output of line item quantities because they are declared to be strings and one cannot sum strings, one can only concatenate them.
So it seems like this is a harmless typo, but unsure. Patch to follow to show what I mean.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2790583-02.patch | 769 bytes | joshmiller |
Screen Shot 2016-08-26 at 8.27.02 AM.png | 25.57 KB | joshmiller |
Comments
Comment #2
joshmillerI know that some math operations need strings to keep significant figures (zeros behind the decimal point). If that is the case here, can we get a quick comment on that for future devs that like to check up on "errors"?
Comment #3
rszrama CreditAttribution: rszrama at Centarro commentedClosing per our discussion in Slack.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedLet's use this issue to replace the code shown in the summary with the correct code that uses the Calculator.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedThere we go.
Comment #7
joshmiller<3