591484bdd3
Fix #20449 : Remove PHP_VERSION_ID
checks from helpers BaseJson
class
2025-07-14 16:54:44 +03:00
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
5406e5dad3
Fix #19766 : Add support for PHP generators to JSON helper
2023-02-27 14:48:22 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
2021-11-10 13:26:55 +03:00
0041f034fd
[doc] Update PHP doc links ( #18957 )
...
* Replace https://secure.php.net with https://www.php.net
* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
932806b97d
Fix #18812 : Added error messages and optimized "error" methods in yii\helpers\BaseJson
2021-09-06 15:51:13 +03:00
0b29ba870e
Fix #18762 : Added yii\helpers\Json::$keepObjectType
and yii\web\JsonResponseFormatter::$keepObjectType
in order to avoid changing zero-indexed objects to array in yii\helpers\Json::encode()
2021-08-24 22:30:33 +03:00
db39f7c955
Json pretty print ( #18726 )
...
* Added pretty print support to Json helper
* Updated documentation for `yii\helpers\Json::$prettyPrint`
* Fixed line ending in \yiiunit\framework\helpers\JsonTest::testPrettyPrint for windows
* Added helper-json.md link in docs/guide/README.md
* Capitalized JSON in descriptions
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-06-27 14:08:41 +02:00
0ba9c619c7
Fix #17760 : Fix JSON::encode()
for \DateTimeInterface
under PHP 7.4
2020-01-09 18:52:48 +03:00
bdb7c64910
Update to https protocol for php.net links ( #17168 ) [skip ci]
...
* Updated php.net link for some MemCache properties [skip ci]
* Changed protocol to https for links to php.net in comments
* Changed protocol to https for links to php.net in code
* Changed www.php.net (http) to secure.php.net (https) in comments
* Changed www.php.net (http) to secure.php.net (https) in code
* Changed protocol to https for links to php.net in UPGRADE.md
* Changed protocol to https for links to pecl.php.net in comments
* Changed us.php.net to secure.php.net (https) in comments
* Changed protocol to https for links to php.net in docs
* Changed www.php.net (http) to secure.php.net (https) in docs
* Changed protocol to https for links to pecl.php.net in docs
* Changed ru/jp.php.net to secure.php.net (https) in docs
Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
e6f5c46cdc
Fixes #15633 : Deprecate some things going away/changing in 2.1
...
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
f11f818b18
Fixes #7988 : Added \yii\helpers\Console::errorSummary()
and \yii\helpers\Json::errorSummary()
2017-12-14 10:59:53 +03:00
5a8c3d537b
Enable phpdoc_summary
rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
18bac955c1
docs about JSON and UTF-8
...
fixes #10761
2016-12-16 03:08:02 +01:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
01e2ba1d28
BC for JsonSerializable
at BaseJson::processData()
restored
2016-08-01 10:38:51 +03:00
acfe21b400
Fixed yii\helpers\Json::encode()
encodes empty array returned by JsonSerializable::jsonSerialize()
as object
2016-08-01 10:31:10 +03:00
9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
258175149d
Fixes #11125 : Fixed JSON_ERROR_SYNTAX
for json_decode(null)
in PHP 7
2016-03-15 22:36:23 +03:00
f620f4de90
phpdoc fixes
2016-02-07 19:48:13 +01:00
a2bf2598ce
Release fix from SilverFire
2015-11-29 01:24:43 +03:00
1028152aac
Unexpected behavior for \SimpleXMLElement and Json::encode() #10278
2015-11-29 00:58:32 +03:00
7bea7b65fd
Fixes #9282 : Improved JSON error handling to support PHP 5.5 error codes
2015-11-04 12:59:37 +03:00
59208e5fc6
Fixes #9681 : Json::encode()
was erroring under CYGWIN
2015-09-27 15:58:32 +03:00
6e3da6b329
various phpdoc fixes
2015-08-02 22:53:08 +02:00
f4dfb0f17f
Reverted part of #9239
2015-08-02 12:13:40 +03:00
afbc515407
Fixes #9239 : BaseJson phpdoc corrections, minor improvements, added changelog
2015-08-01 00:48:58 +03:00
079778a355
#9239 : Handle json_encode errors
2015-08-01 00:48:58 +03:00
78d3a856d3
Added Json::htmlEncode()
to support safer JSON data encoding in HTML code
2015-05-09 23:38:17 -04:00
48ec791e4a
Fixes #5587 : json_encode
is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
where it makes sense, also it is now default for Json::encode()
2014-10-19 18:50:46 +04:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
fad635440b
Fixes #2655 : Arrayable and ArrayableTrait are incompatible for some PHP versions.
2014-03-07 19:08:27 -05:00
3f6fec3c55
refactored Json helper.
2014-01-11 17:25:54 -05:00
afa72add38
proper handling of JsonSerializable.
2014-01-11 16:54:20 -05:00
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00