1a74b3d4f8
[minor] SCA with Php Inspections (EA Ultimate) ( #15871 )
...
* Php Inspections (EA Ultimate): use type casting where applicable
* Php Inspections (EA Ultimate): use constants where applicable
* Php Inspections (EA Ultimate): CS
* Php Inspections (EA Ultimate): address some of one-time used variables
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): revert a constant usage
* Php Inspections (EA Ultimate): revert sequential assignments
* Php Inspections (EA Ultimate): build is green again
* Php Inspections (EA Ultimate): revert array_merge tweaks
* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak
* Update description [skip ci]
* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
2018-02-27 19:13:22 +01: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
38f66e9c6d
IsIndexed() @return wrong description fixed ( #15538 ) [skip ci]
2018-01-22 15:44:54 +03:00
d2423cd6ca
Fixes #15301 : Fixed ArrayHelper::filter()
to work properly with 0
in values
2017-12-08 16:34:29 +03:00
2d672b6722
release version 2.0.13
2017-11-03 01:09:29 +03:00
93bbf5b39d
Fixes #15015 : Added StringHelper::floatToString()
to savely cast float values independent of the locale, also fixes some places in the framework that use it now
2017-10-27 11:41:45 +03:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
59002a9e1e
Fixes #6644 : Added yii\helpers\ArrayHelper::setValue()
2017-07-16 00:25:44 +03:00
6e223e6db2
Fixes #14423 : Fixed ArrayHelper::merge
behavior with null values for integer-keyed elements
2017-07-13 10:36:59 +03:00
fe8a0a6a2e
Enable no_useless_else
rule in php-cs-fixer ( #14420 )
2017-07-10 11:26:21 +03: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
e62ea0136c
Fixed phpdoc broken links to PHP manual pages [skip ci]
2017-04-11 00:43:38 +03:00
ed82ba4ee2
Revert "fix ArrayHelper::getValue() to throw exception on invalid input"
...
This reverts commit e963b2af6486dd79c26a460148c63efb580f53fc because of BC breaking reported in #13248 .
To know more about the reasons of commit revertinvg, visit https://github.com/yiisoft/yii2/issues/13248
2016-12-20 12:39:25 +02:00
e963b2af64
fix ArrayHelper::getValue() to throw exception on invalid input
...
fixes #12927
2016-12-16 01:49:37 +01:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
940f7c7cd4
PHPDocs updated. Closes #12927
2016-11-05 22:11:09 +02:00
6b73cfccbb
Fixes #12881 : Added removeValue
method to yii\helpers\BaseArrayHelper
(nilsburg)
2016-11-04 18:21:56 +03:00
e8c16a09fa
Fixed some typos ( #12847 )
2016-10-26 14:02:38 +03:00
11fe407ad0
release version 2.0.10
2016-10-20 14:02:50 +02:00
5ef5005e49
Updated PHPDocs, fixes #12545
2016-09-15 19:51:49 +03:00
993f2aef28
Fixes #11275 : Added possibility of unset or force replace former value in ArrayHelper::merge()
2016-08-03 22:49:49 +03:00
c99acb6182
Fixes #11950 : Improve BaseArrayHelper::keyExists speed
2016-07-15 14:53:25 +03:00
f7f24d3c47
Fix code block in phpDoc of BaseArrayHelper::filter ( #11948 ) [skip ci]
2016-07-14 12:21:42 +03:00
4fd4ac04b1
Minor adjustments for #11462
2016-07-03 02:05:13 +03:00
30bb9bd7c8
Fixes #11462 : Added support of filtering rules to yii\log\Target::$logVar
, added \yii\helpers\BaseArrayHelper::filter()
method
2016-07-03 01:56:05 +03:00
01c84e2ff2
Fixes #11549 : Fixed ArrayHelper::getValue()
to work properly with float keys
2016-06-19 15:26:44 +03:00
239d7814eb
Fixes #11739 : Fixed ArrayHelper::index()
losing precision for float keys
2016-06-19 15:00:46 +03:00
2238c32098
fix BaseArrayHelper::isIn() in strict mode
...
close #11686
2016-06-09 13:10:11 +02:00
bc63b7607f
Fixed PHPDoc for BaseArrayHelper::index()
...
Closes #11556
2016-05-12 16:33:23 +03:00
c6d04644d3
passing properties to recursive call if properties of top object are not specified
...
fixes #7717
close #10960
2016-04-28 02:34:10 +02:00
5a425b2528
BaseArrayHelper::index() updated PHPDoc
2016-03-10 18:12:33 +02:00
91e2c71826
Fixes #@11071
2016-03-10 16:39:21 +02:00
e4d9ed5182
code style fix
2016-03-09 10:17:41 +02:00
438e5cfb5d
BaseArrayHelper::isTraversable() PHPDoc update
2016-02-24 23:51:19 +02:00
16a6af5fa8
Add helper function for checking if an object is an array-like object.
...
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
2016-02-24 23:49:05 +02:00
80e9331fe0
Spelling fixes, BaseArrayHelper::index()
parameter groupBy
renamed to groups
2016-02-24 23:43:09 +02:00
d56d2d7a31
BaseArrayHelper::index() - 3rd parameter renamed from dimensions to groupBy
...
PHPDoc updated
2016-02-24 23:07:37 +02:00
ef8b0a2be0
parameter dimensions in ArrayHelper::index
2016-02-15 17:47:44 +10:00
78de315794
Fixed processing nested objects multisort in BaseArrayHelper
...
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
ef5ce2d4c1
missing @since
annotations in helpers
2016-02-07 17:46:12 +01:00
ed23b97baf
#10574 - Fix for BaseArrayHelper to work with invalid characters in proper way
2016-01-16 09:37:36 +03:00
f6dcb290ed
reverted c00b97a/#9915, this is expected behavior
...
When accessing non-existing properties it is expected behavior to throw an error.
This is the case in all other places.
It is also not reliably possible to determine whether a property exists beforehand.
it is not sufficient to call `property_exists()` as it may be available via `__get()`.
Instead of `property_exists()` or `isset()` it should call `$object->canGetProperty()` but this is not
guaranteed to be implemented and therefor doing such a check will not work in 2.0.x.
calling isset() may break code that works through __get() but has not implemented __isset() properly.
We may discuss this for 2.1 again but I am in favor of keeping it as is.
2016-01-15 16:19:24 +01:00
f72e9d5bcf
Revert " #9915 : changed behavior of ArrayHelper::getValue() according to @azureru suggestion"
...
This reverts commit 4b511fb9bcbb1fc5838ad8bc65f3852b09287acb.
2016-01-15 16:03:46 +02:00
4b511fb9bc
#9915 : changed behavior of ArrayHelper::getValue() according to @azureru suggestion
2016-01-15 15:21:08 +03:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
e5ed256959
rename ArrayHelper::in() and ArrayHelper::subset()
...
22d9997281 (commitcomment-14527757)
2015-11-22 17:05:09 +01:00
22d9997281
Implemented support of traversable objects in RangeValidator::ranges
, added ArrayHelper::in()
and ArrayHelper::subset()
2015-11-18 16:41:56 +02:00
c00b97a12c
Fixes #9915 : yii\helpers\ArrayHelper::getValue()
was erroring instead of returning null
for non-existing object properties
2015-10-14 12:56:59 +03:00
68c30c1034
Replace aliases of functions
2015-06-29 22:59:22 +03:00