41 Commits

Author SHA1 Message Date
97a4d711ec Merge branch 'master' into sync-master-2052. 2025-04-26 19:03:07 -04:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
20d6c65db2 Merge branch 'master' into sync-to-master. 2024-03-20 06:11:31 -03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
c9c100acd7 Remove deprecated method className() for branch 2.2. (#19894) 2023-07-16 21:45:39 +08: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
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
13f27e4d92 Fix #18817: Use paragonie/random_compat for random bytes and int generation 2021-08-09 10:25:36 +03:00
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
c584acd296 Reverted accidental change 2016-07-29 00:57:10 +03:00
edc62172fa Fixes #12037: Fixed 2.0.7 regression in memcahe/memcached cache backend 2016-07-28 23:35:31 +03:00
d804950d09 Update phpDoc BaseMailer::compose() 2016-02-20 18:44:29 +03:00
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
05cc9ae405 improved HTML to Text fallback in BaseMailer
fixes #6748
2015-01-10 15:07:12 +01:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
a2a6028253 Fixes #3992
Fixes #4147
2014-07-01 14:45:44 -04:00
bc00449c5f removed wrong use statement for MailEvent 2014-06-25 23:12:11 +02:00
313139968e Update BaseMailer.php 2014-05-02 18:34:13 +03:00
cdadc01ba2 Update BaseMailer.php 2014-05-02 17:33:25 +03:00
a324b26c7f BaseMailer: strip <style> content from TextBody fix
If ```$htmlLayout``` contains <style> tags with CSS rules,
strip_tags here: https://github.com/yiisoft/yii2/blob/master/framework/mail/BaseMailer.php#L189
won't clean those CSS rules.

Actual html: 
```html
<html>
    <head>
        <style>
            .text-secondary {color: #93959A;}
            [...]
            [Other CSS rules]
            [...]
        </style>
    </head>
    <body>
        <div>Some content</div>
    </body>
</html>
```

Will look this way in TEXT version of Email: 
```
.text-secondary {color: #93959A;}
[...]
[Other CSS rules]
[...]
Some content
```

--------------

If TEXT version of Email differs drastically from visible content of HTML version,
it can be result that some penalty points will apply to such mails: 
http://wiki.apache.org/spamassassin/Rules/MPART_ALT_DIFF_COUNT


Since it's default behaviour for both yii2-app-advanced and yii2-app-basic (where stripped from tags html used for TextBody),
I believe people will stumble in this for sure, without even knowing that their emails can be penalized.


You can reproduce it by placing CSS styles in email view or layout
and test it here: http://www.mail-tester.com/ (SpamAssassin section).
2014-05-02 17:01:03 +03:00
3437c571a1 phpdoc controller did not find some setters
fixes #3255
2014-04-26 13:03:08 +02:00
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
92bd71cd84 Fixes #2912: Relative view files will be looked for under the directory containing the view currently being rendered 2014-03-28 21:54:32 -04:00
ccd16e184f added mailer to the message when using compose
more expected behavior when chaining methods using
Mailser::compose()

fixes #2723
2014-03-25 15:05:34 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
e2aacad8aa Added links to PHP.net to apidoc 2014-03-07 19:41:43 +01:00
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00
4e6aa21198 The directory holding email templates is renamed from mails to mail 2014-02-12 15:01:01 -05:00
c9eca1d596 Fixed refactoring 2014-01-25 13:35:27 +04:00
0dfc8b1f7c refactored BaseMailer about message file name generation. 2014-01-24 11:48:20 -05:00
349f2c9e32 phpdoc fixes, unused variable 2014-01-12 23:40:21 +04:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00