[PR #844] [MERGED] Preserved typing for float and integers values #1377

Closed
opened 2026-03-04 03:11:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/844
Author: @gpolaert
Created: 9/5/2016
Status: Merged
Merged: 9/18/2016
Merged by: @Seldaek

Base: masterHead: patch-1


📝 Commits (1)

  • 19d7269 Preserved typing for float and integers values

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/Monolog/Formatter/NormalizerFormatter.php (+1 -1)

📄 Description

Related #831
Logs stored in a ELK-based solution need to keep the value typing, especially with float vs integer types.
Adding JSON_NUMERIC_CHECK and JSON_PRESERVE_ZERO_FRACTION allow to avoid issue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Seldaek/monolog/pull/844 **Author:** [@gpolaert](https://github.com/gpolaert) **Created:** 9/5/2016 **Status:** ✅ Merged **Merged:** 9/18/2016 **Merged by:** [@Seldaek](https://github.com/Seldaek) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`19d7269`](https://github.com/Seldaek/monolog/commit/19d72693c896911881a829b7f2cdec85f0289dac) Preserved typing for float and integers values ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/Monolog/Formatter/NormalizerFormatter.php` (+1 -1) </details> ### 📄 Description Related #831 Logs stored in a ELK-based solution need to keep the value typing, especially with float vs integer types. Adding `JSON_NUMERIC_CHECK` and `JSON_PRESERVE_ZERO_FRACTION` allow to avoid issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:11:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#1377
No description provided.