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
8228d81b25
release version 2.0.48
2023-05-22 10:32:53 +04:00
0fcd434c97
Fix #19838 : Added yii\helpers\BaseFileHelper::getExtensionByMimeType()
to get the most common extension for a given MIME type
2023-05-19 22:56:47 +03:00
7ed855ccae
Add FileHelper test for a negative except, clarify docs ( #19723 )
2022-12-30 00:37:32 +04:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03: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
7b8c29d874
Fix #19243 : Handle finfo_open
for tar.xz as application/octet-stream
on PHP 8.1
2022-02-19 23:45:20 +03:00
f555fce82b
Fix typo ( #19168 )
2022-01-15 08:43:05 +01: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
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
0181a49bb4
Fix phpdoc in BaseFileHelper ( #18928 )
2021-10-03 16:31:37 +03:00
e3028c524d
Fix #18899 : Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
2021-09-28 11:06:46 +03:00
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-31 21:07:36 +03:00
31ca0fcb6f
Fix #18676 : Added method yii\helpers\BaseFileHelper::changeOwnership()
and properties newFileMode
/newFileOwnership
in yii\console\controllers\BaseMigrateController
...
Co-authored-by: Bizley <pawel@positive.codes>
2021-05-30 19:26:15 +03:00
4479c66522
Fixed phpdoc types
2021-03-12 23:41:48 +03:00
b8f4958092
Fix #18442 : Fix calls with array access to strings
2020-12-23 01:08:58 +03:00
efe8d48f15
Fix #15779 : If directory path is passed to FileHelper::unlink()
and directory has files it will not delete files in this directory on Windows now
2019-08-06 16:34:47 +03:00
9c37016dac
Fixes #17235 : yii\helpers\FileHelper::normalizePath()
now accepts stream wrappers
2019-03-29 18:26:31 +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
ba0a3c00ca
Fixes #16183 : Fixed when yii\helpers\BaseFileHelper
sometimes returned wrong value
2018-10-27 02:07:17 +03:00
959cb985e3
Fixed PHPDoc blocks in FileHelper ( #16402 ) [skip ci]
2018-06-14 20:23:10 +03:00
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
2018-02-27 19:13:22 +01:00
22832b7c49
release version 2.0.14
2018-02-19 00:27:09 +02:00
9f7d09cfae
Removed unneeded quotes
2018-02-19 00:52:44 +03:00
d9fdf0f235
Added missing escaping to Windows fallback of FileHelper::unlink()
2018-02-19 00:50:51 +03:00
7febeb8ad4
Renamed yii\helpers\FileHelper findDirectory() method to findDirectories() to be consistend with findFiles()
2018-02-16 22:41:28 +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
16e63f6de2
Fixes #13465 : Added yii\helpers\FileHelper::findDirectory()
method
2018-02-03 23:00:59 +07:00
06ebd3faa7
Fixes #13034 : Fixed normalizePath
for windows network shares that start with two backslashes
2018-01-30 17:57:13 +07:00
1b8da6d951
Add StringHelper::matchWildcard()
( #15389 )
...
`StringHelper::matchWildcard()` added
2017-12-20 16:16:25 +02:00
efac23dde7
Fixes #15335 : Added FileHelper::unlink()
that works well under all OSes
2017-12-11 22:29:31 +03:00
1e00a050d7
Fixes #15322 : Fixed PHP 7.2 compatibility of FileHelper::getExtensionsByMimeType()
2017-12-10 16:31:42 +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
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
ea33bbd369
Fix docs of a base file helper ( #14477 ) [skip ci]
2017-07-18 13:45:22 +03:00
a50d9d8e3e
Enable include
rule in php-cs-fixer ( #14418 )
2017-07-10 13:19:57 +03:00
fe8a0a6a2e
Enable no_useless_else
rule in php-cs-fixer ( #14420 )
2017-07-10 11:26:21 +03:00
ac70262bfc
Fixed typo in BaseFileHelper::findFiles() docs ( #14200 ) [skip ci]
2017-05-24 20:59:35 +05:00
5e8e6840b6
Added copyEmptyDirectories option to FileHelper
...
also set it to false in AssetManager to avoid creating a lot of empty
directories.
fixes #9669
2017-05-08 00:21:53 +02:00
debe85fa34
Fixes #14098 : yii\helpers\BaseFileHelper::normalizeOptions()
is now protected
2017-05-03 00:53:21 +02:00
1d5a6d1722
Add is_dir() validation for BaseFileHelper::findFiles().
...
Sometimes it throws exception when file/directory is deleted or moved while executing script.
2016-12-15 23:21:17 +02:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
740a97de49
fixed file helper docs about ordering in findFiles()
...
fixes #12546
2016-09-16 09:45:09 +02:00
fd54ff2212
Update PHPDoc
2016-09-15 20:20:45 +03:00
b39a0a1e5a
Fixes #11774 : Fixed incorrect recusuive symlinks check in FileHelper
2016-06-18 17:34:25 +03:00
4f4fa6fdf0
Fixes #10710 : yii\helpers\FileHelper::copyDirectory()
is now throwing exception when trying to copy a directory to itself or a subdirectory
2016-04-23 01:58:33 +03:00
77599dc179
fixes #11040 : make copyDirectory method work correctly with parameter 'recursive'
2016-03-08 00:45:52 +06:00
a6e1ba2cf6
Fixed mb_ functions calls to use UTF-8 or app charset
2015-11-17 09:02:22 +02:00