[php-src] Issue #22128: BcMath\Number::createFrom
| From: | whataboutpereira | Date: | Fri, 22 May 2026 15:31:20 +0000 |
| Subject: | [php-src] Issue #22128: BcMath\Number::createFrom | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252117@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/22128
Author: whataboutpereira
### Description
Any plans to add a static creator function to BcMath\Number akin to DateTime::createFromImmutable()
etc functions?
It would allow turning values to Number objects without additional code in object mapper
transformers etc where you could simply pass Number::createFrom(...) as transformer.