fe46b59361
Change property visibility to allow more flexibility for apps ( #19696 )
...
* Change property visibility to allow more flexibility for apps
* Update framework/web/View.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Added changelog
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2022-11-29 08:18:03 +01:00
25eed6fe1c
Fix phpdoc for yii\web\Controller ( #19619 )
2022-10-12 08:41:20 +02:00
473ead8e46
Optimize: simplified regexp ( #19541 )
2022-09-06 09:42:58 +03:00
d6dfca1b80
Fix #16658 : Fix file readability check on publishing assets by yii\web\AssetManager
2022-08-29 10:18:59 +03:00
22614a5b1f
release version 2.0.46
2022-08-19 01:18:45 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
827db6c90e
Revert "Fix #19290 : Fix Request::getHostInfo()
doesn’t return the port if a Host header is used"
...
This reverts commit 8046d3a50f207e1033e1b23ff571da5bced0c822.
2022-07-01 10:28:31 +03:00
34708b4cf4
Fix #19400 : Fix passing null in yii\web\Response::redirect()
2022-06-21 00:15:07 +03:00
45519d3c18
Fix #19437 : Add support to specify request port by trusted proxies in \yii\web\Request::getServerPort()
2022-06-17 20:18:18 +03:00
a98ab994ad
Fix #19403 : Fix types in yii\web\SessionIterator
2022-06-01 11:23:36 +03:00
a345649871
Normalize PhpDoc types in AssetsManager ( #19419 )
2022-06-01 10:30:10 +03:00
e39e744b45
Fix #19384 : Normalize setBodyParams()
and getBodyParam()
in yii\web\Request
2022-05-23 10:39:33 +04:00
8046d3a50f
Fix #19290 : Fix Request::getHostInfo()
doesn’t return the port if a Host header is used
2022-04-16 00:37:55 +04:00
406ec82f94
Fix #19270 : Replace deprecated scss
converter in yii\web\AssetConverter::$commands
2022-04-08 01:18:36 +04:00
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02:00
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
4cfdfc011f
Add yii\web\UploadedFile::$fullPath
( #19308 )
...
* Add `yii\web\UploadedFile::$fullPath`
`$_FILES['userfile']['full_path']` Available as of PHP 8.1.
Updates related methods `loadFilesRecursive()` and `loadFilesRecursive()`
* Update UploadedFile.php
* Update UploadedFile.php
* Update UploadedFile.php
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: Bizley <pawel@positive.codes>
* Update UploadedFile.php
Co-authored-by: Bizley <pawel@positive.codes>
2022-03-30 09:38:00 +02:00
f6d328335e
GroupUrlRule slash in prefix ( #19330 )
...
* Bring back slash
* changelog
* group url rule test
2022-03-29 21:37:25 +02:00
4d90778861
Fix bug #19235 ( #19247 )
...
* Fix bug #19235
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
2022-02-18 09:27:18 +01:00
0792736b35
release version 2.0.45
2022-02-11 16:12:40 +03:00
aa61a7b77a
clarification added ( #19220 )
2022-02-10 14:07:39 +01:00
71e810c89d
Fix #19130 : Fix DbSession breaks in some case
2022-02-08 16:45:42 +03:00
60c91eb433
Fix BC introduced in #19188 ( #19194 )
2022-01-27 21:47:37 +03:00
dbb157fd32
Fix #19187 : Fix yii\filters\PageCache
to store original headers names instead of normalized ones
2022-01-27 00:52:32 +03:00
0eaa71d46c
Fix #19191 : Change \Exception
to \Throwable
in BadRequestHttpException
and HttpException
2022-01-27 00:51:23 +03:00
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
2022-01-14 13:52:01 +03:00
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
12763a146e
Fix #19067 : Fix constant session regeneration ( #19113 )
...
* Fix constant session regeneration
* Add tests for session ID, always regenerating session ID for switching identity
2021-12-29 12:45:13 +03:00
552593ca3b
Prepare for new apidoc (part 2) ( #19010 )
...
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
2021-11-10 13:26:55 +03:00
e294c23102
Fix#18328: Yii::warning() raised on file register after View::endBody() has been moved to View::endPage() ( #18975 )
...
Co-authored-by: Mehdi Achour <machour@gmail.com>
2021-10-25 23:11:29 +03:00
b757d25c4b
Fix #18328 : Raise warning when trying to register a file after View::endBody()
has been called
2021-10-23 16:08:33 +03:00
6fdba043d7
Update Session.php ( #18969 )
2021-10-22 08:46:29 +02: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
ae82b58d85
Fix #18909 : Fix bug with binding default action parameters for controllers
2021-10-19 01:01:46 +03:00
175f66e6e0
Fix #18908 : Add stdClass as possible return type to getBodyParams ( #18918 )
2021-10-01 23:23:30 +03:00
2c3f5d990c
Fix #18733 : Fix session offset doc types ( #18919 )
2021-10-01 17:16:38 +03:00
f8e65d2027
Fix @since tag in XmlResponseFormatter.php ( #18901 )
...
Wrong version, see https://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md#2044-under-development
2021-09-23 15:18:17 +03:00
f3956a4eec
Fix header collection from array ( #18883 )
...
* Fixed HeaderCollection::fromArray() key case
* Added CHANGELOG.md line for #18883 (Fixed HeaderCollection::fromArray() key case)
2021-09-17 09:29:33 +02:00
ea60fba0ae
Fix yii\base\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType
type is passed ( #18869 )
2021-09-06 20:16:14 +02: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
ec07ad9ff9
Fix #18783 : Add support for URI namespaced tags in XmlResponseFormatter
, add XmlResponseFormatter::$objectTagToLowercase
option to lowercase object tags
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-08-24 16:54:50 +03:00
df6e5869bd
docs: update RFC 7239 link ( #18839 )
...
fix #18838
2021-08-16 17:26:31 +02:00
c94d7049c5
Issue #18646 Cleanup auth data from session if findIdentity() returns… ( #18649 )
...
* Issue #18646 Cleanup auth data from session if findIdentity() returns null
* Issue #18646 Refactor fix to remove stale identity data from session
* Issue #18646 Fix test for HttpBasicAuth (#15658 )
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-08-11 10:35:01 +02:00
540a9011af
release version 2.0.43
2021-08-09 20:38:43 +03:00
7ebaaf0216
Fix #18789 : Added JSONP support in yii\web\JsonParser::parse()
2021-08-07 15:31:35 +03:00
86d7e95077
Minor enhancements for JsExpression ( #18793 )
...
- Fix class phpDoc.
- Convert expression to string in `__toString()`.
2021-07-30 12:46:57 +03:00
fd7373f1c6
Make docs gender agnostics ( #18781 )
2021-07-25 15:44:56 +02:00
8cc9aeb2f0
Fix #18749 : Fix yii\web\ErrorHandler::encodeHtml()
to support strings with invalid UTF symbols
2021-07-06 23:34:21 +03:00
e83a86fd30
Fix #18648 : Fix yii\web\Request
to properly handle HTTP Basic Auth headers
2021-07-01 13:06:38 +03:00