Vladimir Reznichenko
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
7 years ago
Vladimir Reznichenko
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
7 years ago
Brandon Kelly
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()`
7 years ago
Ankit Padia
38f66e9c6d
IsIndexed() @return wrong description fixed ( #15538 ) [skip ci]
7 years ago
hhniao
d2423cd6ca
Fixes #15301 : Fixed `ArrayHelper::filter()` to work properly with `0` in values
7 years ago
Alexander Makarov
2d672b6722
release version 2.0.13
7 years ago
Carsten Brandt
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
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Alex
59002a9e1e
Fixes #6644 : Added `yii\helpers\ArrayHelper::setValue()`
7 years ago
Dmitry Dorogin
6e223e6db2
Fixes #14423 : Fixed `ArrayHelper::merge` behavior with null values for integer-keyed elements
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Robert Korulczyk
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.
7 years ago
Skiptir Engu
e62ea0136c
Fixed phpdoc broken links to PHP manual pages [skip ci]
8 years ago
SilverFire - Dmitry Naumenko
ed82ba4ee2
Revert "fix ArrayHelper::getValue() to throw exception on invalid input"
...
This reverts commit e963b2af64
because of BC breaking reported in #13248 .
To know more about the reasons of commit revertinvg, visit https://github.com/yiisoft/yii2/issues/13248
8 years ago
Carsten Brandt
e963b2af64
fix ArrayHelper::getValue() to throw exception on invalid input
...
fixes #12927
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
SilverFire - Dmitry Naumenko
940f7c7cd4
PHPDocs updated. Closes #12927
8 years ago
n.vanderburg
6b73cfccbb
Fixes #12881 : Added `removeValue` method to `yii\helpers\BaseArrayHelper` (nilsburg)
8 years ago
Alexey Rogachev
e8c16a09fa
Fixed some typos ( #12847 )
8 years ago
Carsten Brandt
11fe407ad0
release version 2.0.10
8 years ago
SilverFire - Dmitry Naumenko
5ef5005e49
Updated PHPDocs, fixes #12545
8 years ago
Robert Korulczyk
993f2aef28
Fixes #11275 : Added possibility of unset or force replace former value in `ArrayHelper::merge()`
8 years ago
Egor Verbitskiy
c99acb6182
Fixes #11950 : Improve BaseArrayHelper::keyExists speed
8 years ago
Roman Grinyov
f7f24d3c47
Fix code block in phpDoc of BaseArrayHelper::filter ( #11948 ) [skip ci]
8 years ago
Alexander Makarov
4fd4ac04b1
Minor adjustments for #11462
8 years ago
Viktor Pikaev
30bb9bd7c8
Fixes #11462 : Added support of filtering rules to `yii\log\Target::$logVar`, added `\yii\helpers\BaseArrayHelper::filter()` method
8 years ago
wanghui
01c84e2ff2
Fixes #11549 : Fixed `ArrayHelper::getValue()` to work properly with float keys
8 years ago
AnikanovD
239d7814eb
Fixes #11739 : Fixed `ArrayHelper::index()` losing precision for float keys
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
taobig
2238c32098
fix BaseArrayHelper::isIn() in strict mode
...
close #11686
8 years ago
SilverFire - Dmitry Naumenko
bc63b7607f
Fixed PHPDoc for BaseArrayHelper::index()
...
Closes #11556
8 years ago
Vladimir Khramov
c6d04644d3
passing properties to recursive call if properties of top object are not specified
...
fixes #7717
close #10960
9 years ago
SilverFire - Dmitry Naumenko
5a425b2528
BaseArrayHelper::index() updated PHPDoc
9 years ago
Taras Gudz
91e2c71826
Fixes #@11071
9 years ago
Klimov Paul
e4d9ed5182
code style fix
9 years ago
SilverFire - Dmitry Naumenko
438e5cfb5d
BaseArrayHelper::isTraversable() PHPDoc update
9 years ago
Sam Mousa
16a6af5fa8
Add helper function for checking if an object is an array-like object.
...
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
9 years ago
Alexander Makarov
80e9331fe0
Spelling fixes, `BaseArrayHelper::index()` parameter `groupBy` renamed to `groups`
9 years ago
SilverFire - Dmitry Naumenko
d56d2d7a31
BaseArrayHelper::index() - 3rd parameter renamed from dimensions to groupBy
...
PHPDoc updated
9 years ago
Vladimir Khramov
ef8b0a2be0
parameter dimensions in ArrayHelper::index
9 years ago
Andrew Nester
78de315794
Fixed processing nested objects multisort in BaseArrayHelper
...
fixes #8348
close #10607
9 years ago
Carsten Brandt
ef5ce2d4c1
missing `@since` annotations in helpers
9 years ago
Andrew Nester
ed23b97baf
#10574 - Fix for BaseArrayHelper to work with invalid characters in proper way
9 years ago
Carsten Brandt
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.
9 years ago
SilverFire - Dmitry Naumenko
f72e9d5bcf
Revert "#9915: changed behavior of ArrayHelper::getValue() according to @azureru suggestion"
...
This reverts commit 4b511fb9bc
.
9 years ago
Alexander Makarov
4b511fb9bc
#9915 : changed behavior of ArrayHelper::getValue() according to @azureru suggestion
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Carsten Brandt
e5ed256959
rename ArrayHelper::in() and ArrayHelper::subset()
...
22d9997281 (commitcomment-14527757)
9 years ago
Sam Mousa
22d9997281
Implemented support of traversable objects in `RangeValidator::ranges`, added `ArrayHelper::in()` and `ArrayHelper::subset()`
9 years ago
Vadim
c00b97a12c
Fixes #9915 : `yii\helpers\ArrayHelper::getValue()` was erroring instead of returning `null` for non-existing object properties
9 years ago