Skip to content

fix: timestamp_micros у поверненні (1.1.1) - #1

Merged
devSviat merged 1 commit into
mainfrom
fix/phpstan-2-3-7
Dec 4, 2026
Merged

devSviat merged 1 commit into
mainfrom
fix/phpstan-2-3-7

Conversation

@devSviat

@devSviat devSviat commented Dec 4, 2026

Copy link
Copy Markdown
Owner

(string)microtime(true) * 1000000 спершу приводив до рядка, потім множив, тож у payload повернення timestamp_micros ішов числом із плаваючою комою (1.7964e+15), а не цілим числом мікросекунд рядком. Тепер (string)(int)(microtime(true) * 1000000).

Знайшов PHPStan 2.3.7. Новий тест RefundTimestampTest на старому коді падає (1796401222280600.0 is of type string), на новому проходить.

….1.1)

(string)microtime(true) * 1000000 множив уже рядок, і в JSON ішло число з плаваючою комою. Тепер (string)(int)(…). Знайшов PHPStan 2.3.7; додано тест.
@devSviat
devSviat merged commit f216808 into main Dec 4, 2026
8 checks passed
@devSviat
devSviat deleted the fix/phpstan-2-3-7 branch December 4, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant