Jordi Boggiano
c5853b9b0f
Improve build
2020-12-09 16:39:34 +01:00
Jordi Boggiano
0ae6fd8a09
Fix removing of json options, fixes #1469
2020-07-08 21:09:28 +02:00
Jordi Boggiano
de87dad98f
Fix CS
2020-05-21 17:02:48 +02:00
Jordi Boggiano
eb4dc3aa6b
Merge branch '1.x'
2020-05-21 16:59:46 +02:00
Jordi Boggiano
acd3173c4a
Fix SoapFault when detail is nested object, fixes #1431 , refs #1462
2020-05-21 16:39:23 +02:00
Jordi Boggiano
eb84930e70
Make NormalizerFormatter::addJsonEncodeOption/removeJsonEncodeOption public, fixes #1446
2020-05-11 21:50:47 +02:00
Jordi Boggiano
0b9ee7e636
Merge branch '1.x'
2019-11-12 21:50:28 +01:00
Jordi Boggiano
12a76ad61e
Fix usages of json_encode which did not handle invalid UTF8 gracefully, fixes #1392
2019-11-12 21:24:23 +01:00
Jordi Boggiano
e1af546a55
Handle detail key of SoapFault being an object, fixes #1391
2019-11-12 20:49:34 +01:00
Jordi Boggiano
cf77550dca
Make sure all exception codes are integers, fixes #1393
2019-11-12 20:38:27 +01:00
Jordi Boggiano
acf8e9e9a3
Merge branch '1.x'
2019-08-30 10:39:21 +02:00
Jordi Boggiano
2efcbcd181
Remove closure stack frames entirely from log
2019-08-30 10:24:17 +02:00
Jordi Boggiano
6688b45ebe
Normalize the way backtraces are normalized and remove args for special cases, fixes #1346
2019-08-16 13:09:47 +02:00
Jordi Boggiano
75caf92980
Merge pull request #1307 from tikoflano/patch-1
...
Enable adding/removing options to json_encode()
2019-07-01 17:02:27 +02:00
Alex Calinescu
b40fec3b7e
Check for JsonSerializable in normalizeException
2019-04-09 11:55:45 +03:00
Alvaro Flaño
93eca5639d
Enable adding/removing options to json_encode()
...
Sometimes you want to add some options. In my case I wanted to encode the data using JSON_FORCE_OBJECT, but there was no way to do it
2019-03-27 13:02:40 -03:00
George Mponos
790ff7fd1d
Docblock fixes
2018-12-09 22:31:46 +02:00
Mponos George
daed05c3e5
Enable JSON encode pretty print ( #1236 )
2018-12-04 10:30:41 +01:00
Jordi Boggiano
a7984a640f
Merge remote-tracking branch 'gmponos/add_visibility_to_constants'
2018-11-29 19:41:58 +01:00
Jordi Boggiano
4a33226f25
Wrap up type-hint adding to all handlers
2018-11-19 23:28:33 +01:00
George Mponos
c68b71edeb
Add visibility to constants
2018-11-17 20:38:51 +02:00
Jordi Boggiano
073c5d763a
Merge branch '1.x'
2018-11-04 18:40:32 +01:00
Jordi Boggiano
42d84e6a8d
Move getClass method to a Utils class, refs #1190
2018-11-04 18:23:20 +01:00
Nicolas Grekas
9117a6c747
Fix displaying anonymous classes
2018-09-24 20:18:56 +02:00
Jordi Boggiano
06143b03e5
Add a bunch of return types and fix type inconsistencies reports from phan
2018-07-04 14:14:08 +02:00
Jordi Boggiano
873ac681a6
Merge branch '1.x'
2018-06-18 17:27:30 +02:00
Jordi Boggiano
3e92b08956
Avoid information leaks through call_user_func arguments, fixes #1138
2018-06-18 17:21:54 +02:00
Andrew Berry
0d993d84d1
Normalization of arrays containing self references ( #1050 )
...
Backport normalization fix from master to 1.x
2018-06-17 17:27:33 +02:00
Jordi Boggiano
800fe2cc1a
Migrate maxNormalizeDepth/maxNormalizeItemCount props and setters to NormalizerFormatter
2018-06-08 23:09:04 +02:00
Jordi Boggiano
518288c5c5
Merge branch '1.x'
2018-06-08 22:32:06 +02:00
Minh-Quan TRAN
ada5d30511
If context has exactly 1000 items, do not truncate
2018-06-08 22:18:08 +02:00
Jordi Boggiano
9ff7540d7a
Remove typehints on normalizer formatter to avoid invalid function signatures
2017-06-19 00:35:23 +02:00
Jordi Boggiano
7405bb5d67
CS fixes
2017-03-20 10:56:47 +01:00
klemens
722796ab4d
spelling fixes (comments, text)
2017-02-27 23:38:55 +01:00
Jordi Boggiano
f6e6f22e77
Merge branch '1.x'
2016-11-26 01:23:57 +01:00
Nils Adermann
45de570954
Don't even try to attempt normalizing iterators or generators in context
...
Iterators and Generators may not be rewindable, so foreach is not safe
to use on them.
Iterators and especially Generators may trigger irreversible actions on
calling next(), so iterating over all values can potentially cause harm,
e.g. imagine an iterator over a set of HTTP POST requests that are sent
when the next value is requested . The only sufficiently safe thing to
iterate and include here are primitive arrays.
2016-11-24 17:38:07 +01:00
Jordi Boggiano
0d01b2c8c7
Merge branch '1.x'
2016-10-03 20:31:55 +02:00
Jordi Boggiano
214b8ef34b
Add total amount of items when aborting traversable normalization
2016-10-03 20:31:30 +02:00
Jordi Boggiano
3884c922ee
Merge branch '1.x'
2016-09-29 09:29:36 +02:00
Jordi Boggiano
7f135e9ed0
Add support for consumed generators in NormalizerFormatter, fixes #838
2016-09-29 09:29:30 +02:00
Jordi Boggiano
6e6586257d
Add scalar types to processor/formatters and top level classes
2016-09-25 21:23:35 +02:00
Jordi Boggiano
1b5d46fc52
Revert addition of JSON_NUMERIC_CHECK as per #844 comment
2016-09-18 17:59:47 +02:00
Guillaume Polaert
19d72693c8
Preserved typing for float and integers values
...
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.
2016-09-05 16:30:35 +02:00
Jordi Boggiano
5967b80dfb
Only use DateTimeImmutable formatting for default date format, fixes #827
2016-07-29 05:07:02 +02:00
Jordi Boggiano
6b0d0c4a19
Merge branch '1.x'
2016-07-29 04:53:49 +02:00
Francis Besset
8b1f522206
Added informations to normalize a SoapFault
2016-07-20 15:18:11 +02:00
Jordi Boggiano
f16e67d523
CS fixes
2016-07-02 15:12:25 +01:00
Jordi Boggiano
f4567f1a5f
Merge pull request #808 from naderman/fix/normalizer-recusion
...
Normalization of arrays containing self references
2016-07-02 15:34:40 +02:00
Nils Adermann
50232e7bb4
Introduce a depth parameter for normalization to limit stack nesting
2016-06-22 14:36:16 +02:00
Jordi Boggiano
03bbe04ba1
Merge branch '1.x'
2016-06-11 16:09:32 +01:00