Skip to content

Commit 88222d5

Browse files
authored
Merge branch 'master' into bugfix/type-casts
2 parents 0f9dc9e + f2db382 commit 88222d5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@ $decimalAdded = $decimalOne->add($decimalTwo); // Now '3.3'
7878
```
7979

8080
Note that due to immutability `$decimalOne` is not modified here. The re-assignment is necessary for the operation to persist.
81+
82+
83+
## Contributing
84+
85+
You can contribute as pull request directly:
86+
- Target `master` branch for: bugfixes, improvements that are BC
87+
- Target `next` branch (next major version) for: Any BC breaking behavior, cleanup like removing deprecations or alike

src/Decimal.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ protected function fromScientific(string $value, ?int $scale): void
817817
}
818818

819819
$this->negative = $matches[1] === '-';
820+
/** @var string $value */
820821
$value = preg_replace('/\b\.0$/', '', $matches[2]);
821822
// @codeCoverageIgnoreStart
822823
if (!is_string($value)) {

0 commit comments

Comments
 (0)