Maksim Spirkov
c569e9136b
Fix #20666 : Add missing generics in yii\base, yii\console, yii\filters and yii\web namespaces
2025-10-31 22:43:14 +03:00
Maksim Spirkov
53256fdd24
Fix #20513 : Fix code examples in PHPDoc
2025-09-06 00:22:56 +03:00
Максим Спирков
e3a2151efd
Replace int|string key types with array-key in PHPStan/Psalm annotations ( #20443 )
2025-07-11 18:17:54 +03:00
Максим Спирков
f66ee97a45
Fix #20374 : Add PHPStan/Psalm annotations for BaseYii, BaseObject, Component, Model, Module and yii\base\Controller
2025-05-05 08:24:57 +03:00
Tim Kelty
d9116d3ccd
Merge branch 'master' into feature/attach-behaviors-with-closure
...
# Conflicts:
# framework/base/Component.php
# tests/framework/base/ComponentTest.php
2024-09-23 09:39:26 -04:00
Tim Kelty
cc05f92181
Attach behavior via "as foo" with Closure
2024-08-21 23:35:57 -04:00
ErickSkrauch
4b75427011
Fix regression of regression introduced in GHSA-cjcc-p67m-7qxm and #20232
2024-08-14 16:49:26 +02:00
ErickSkrauch
6abe5bf008
Fix #20232 : Fix regression introduced in GHSA-cjcc-p67m-7qxm while attaching behavior defined by __class array key
2024-07-25 11:04:56 +03:00
ErickSkrauch
40fe496eda
Fix regression introduced in GHSA-cjcc-p67m-7qxm while attaching behavior defined by __class array key
2024-07-24 23:54:09 +02:00
Alexander Makarov
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
Stefano D. Mtangoo
628d406bfa
Merge pull request from GHSA-cjcc-p67m-7qxm
...
* Fix: Unsafe Reflection in base Component class
* Fix style for consistency
* add changelog entry
* Fix wrong logic
* Fix exception message
* Update framework/CHANGELOG.md
---------
Co-authored-by: Stefano Mtangoo <stefano@hosannahighertech.co.tz >
Co-authored-by: Alexander Makarov <sam@rmcreative.ru >
2024-05-30 19:15:58 +03:00
Ayesh Karunaratne
a292af13bf
[PHP 8.4] Fixes for implicit nullability deprecation ( #20133 )
...
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.
Related to #20128 .
See:
- [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types )
- [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated )
Co-authored-by: Wilmer Arambula <terabytesoftw@gmail.com >
Co-authored-by: Alexander Makarov <sam@rmcreative.ru >
2024-03-26 11:27:58 +03:00
Razvan Grigore
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
Bizley
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
Brandon Kelly
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
Alexander Makarov
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
Anton
cccb65a70d
Fix #19108 : Optimize Component::hasEventHandlers() and Component::trigger()
2021-12-23 14:35:50 +03:00
Bizley
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
Bizley
cffb129605
Few quick fixes to make IDE happy
2020-12-22 18:44:15 +03:00
Alexander Makarov
ccb14ff667
release version 2.0.39
2020-11-10 13:58:35 +03:00
Pavel Dovlatov
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
SilverFire - Dmitry Naumenko
08c87aec4f
Fixed Component::off() not to throw an exception
...
Fixes #15822
2018-03-03 16:37:41 +02:00
Alexander Makarov
0de49406db
Minor code style adjustments, phpdoc
2018-02-18 02:56:56 +03:00
Paul Klimov
921310fd69
condition optimized
2017-12-23 15:33:42 +02:00
Klimov Paul
c2cf1f03ca
Event wildcards added to Event
2017-12-22 17:32:03 +02:00
Klimov Paul
8fccf7f6ca
Event wildcards added
2017-12-20 17:44:03 +02:00
Robert Korulczyk
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
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
Carsten Brandt
393fc2744a
Added yii\base\Object for backwards compatibility
...
fixes #7936
close #14478
2017-07-19 10:53:33 +02:00
Carsten Brandt
69673c0c94
Rename Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
2017-07-19 10:51:46 +02:00
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.
2017-06-12 12:25:45 +03:00
Carsten Brandt
6301daecf7
reverted wrong phpdoc change from #13905
2017-04-03 14:27:04 +02:00
Nikolay Oleynikov
950e895fe0
Fix phpDocumentor annotations ( #13905 ) [skip ci]
2017-04-02 21:49:09 +03:00
Carsten Brandt
25b78aa615
Fixes #13508 : Fixed duplicate attachment of behavior BC break
...
Fixes BC break introduced in
954c771fdb (diff-d45d5e14cbb9739c2e1c63b53ba5e363L669)
2017-02-04 15:47:04 +03:00
Hao
652d05f0b8
Fixed some comment issues ( #13392 ) [skip ci]
2017-01-15 21:39:12 +03:00
Alexander Makarov
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
2016-12-03 00:15:53 +03:00
Robert Korulczyk
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
2016-11-13 14:51:21 +01:00
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
2016-11-04 18:55:14 +03:00
Carsten Brandt
e97c798a4f
fixed wrong docs about behaviors
...
fixes #12392
2016-08-30 11:40:15 +02:00
Evgeniy Tkachenko
be4c9ae5b8
it added also to detachBehavior()
2016-01-20 10:44:14 +03:00
Evgeniy Tkachenko
187e44d3ba
Update phpDoc Component::getBehavior().
...
Added `@return null`
2016-01-20 10:37:48 +03:00
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
2015-04-21 15:08:16 +02:00
Carsten Brandt
624db0e678
updated Component::__isset() docs
...
close #7587
2015-03-05 14:57:29 +01:00
Brandon Kelly
6d2bc06bf4
Corrected the Component::__isset() docs
...
__isset() returns true if the property is set; not if it's null.
2015-03-05 14:51:54 +01:00
Carsten Brandt
8701d7df3b
more explicit comment in phpdoc, code style
2014-07-29 02:45:56 +02:00
Qiang Xue
46041d0c65
Fixes #3280 : Support dynamically attaching anonymous behaviors
2014-06-19 16:45:41 -04:00
Qiang Xue
104c4fc3ae
Added support to allow an event handler to be inserted at the beginning of the existing event handler list
2014-04-04 21:45:34 -04:00
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00