16153 Commits

Author SHA1 Message Date
b8b3aeeb00 update deprecated phpdoc messages 2016-11-22 16:03:28 +01:00
f5049d8a31 Correct MSIE8 reserved word error (#12722)
In MSIE8 and below, yii.gridView file is not loaded and GridView widget is not working (throws Identifier expected error). The reason is that the variable name 'class' is a reserved word. To correct this, the variable name should be changed into an array key, which eliminates the error.

More info about the causes of error: https://tiffanybbrown.com/2013/09/10/expected-identifier-bug-in-internet-explorer-8/
2016-11-22 15:59:36 +03:00
b58fee7d37 Fixes #13035: Use ArrayHelper::getValue() in SluggableBehavior::getValue() 2016-11-22 13:20:45 +03:00
75162652b7 Update BaseHtml.php 2016-11-20 15:17:15 +01:00
8fec6555eb Merge pull request #13051 from w3lifer/patch-4
Typos
2016-11-20 12:25:33 +02:00
2bfc0ff853 improve message translation guide
issue #13052
2016-11-19 21:06:32 +01:00
bc61e4b498 Typos 2016-11-19 16:38:02 +03:00
3cf55b8f03 Remove redundant semicolon (#13045)
merci
2016-11-18 17:04:00 +01:00
04d9ae69bb Test against HHVM 3.12 LTS version (#13012)
This provides Testing against HHVM 3.12 LTS version

If testing against other HHVM LST versions is desired follow this guide. https://docs.travis-ci.com/user/languages/php#HHVM-versions

Should be able to change to container based Trusty after Q1-17 https://blog.travis-ci.com/2016-11-08-trusty-container-public-beta/
2016-11-18 15:50:20 +01:00
6428fab406 Closes #9162: Added support of closures in value for attributes in yii\widgets\DetailView (#13013)
#9162: Added support of closures in `value` for attributes in `yii\widgets\DetailView`
2016-11-18 11:31:40 +03:00
60af0a56cf Closed #12778: Added docs for multiple attributes validation (#13005)
* Added docs for mutiple attributes validation

* Fixed typo in formatting [skip ci]

* More precise explanation about count of validator runs

* Corrected salary min in integer rule

* More strict check in when, additional h3 headers, loop alternative

* Added custom validator section

* Use more accurate phrase

* Block code formatting - php was missing [skip ci]

* Fixes related with PR review [skip ci]

* More fixes related with PR review, removed unnecessary @inheritdoc [skip ci]
2016-11-17 18:52:24 +01:00
c72643b9a3 Merge branch 'arogachev-7420-dropdown-prompt-attributes' 2016-11-17 16:43:47 +02:00
ea251e24ba Closes #7420: Attributes for prompt generated with renderSelectOptions of \yii\helpers\Html helper 2016-11-17 16:43:19 +02:00
bd9e68eb0a Optimize imports (#13033) 2016-11-17 17:12:56 +03:00
17f3b8d8a6 Fixed Model::attributes of documentation (#13028) [skip ci] 2016-11-17 13:46:54 +03:00
f4fc5248cf #13026: recorded method chaining general rule 2016-11-17 13:21:12 +03:00
d5ac2917bd Merge pull request #13025 from arogachev/typo-fix
Fixed typo in PHPDoc [skip ci]
2016-11-17 10:11:58 +02:00
bc314f5299 Fixed typo in PHPDoc [skip ci] 2016-11-17 12:28:38 +06:00
65c488dd9e echo, die, *test*, *automated testing* (#13023) [skip ci] 2016-11-16 21:26:04 +03:00
059a80b47f renamed Cache::$ttl to Cache::$defaultDuration
better naming as discussed in #12990
2016-11-15 23:54:12 +01:00
f76f0cff6c Test against the current hhvm version (#12971)
* Test against the current hhvm version

This provides the current HHVM version (3.15.2 as of this PR) and will track with each release (i.e. will be 3.16 when 3.16 is released.

If testing against HHVM LST versions is desired follow this guide. https://docs.travis-ci.com/user/languages/php#HHVM-versions

Should be able to change to container based Trusty after Q1-17 https://blog.travis-ci.com/2016-11-08-trusty-container-public-beta/

* Try to create travis user for trusty hhvm and grant permissions

remove conditionals for apc and memcache

* more tweaks to grant privileges

* try 127.0.0.1 rather than localhost

* grant after db create

* try a different create user grant privileges form

* try to specify postgresql: "9.3" for hhvm

* need to look more into specifying postgresql: "9.3"

hhvm issues

* addon with no dash postgresql: "9.3"

* requested change && not ||

* redis-server isn't needed here

* Apply @cebe's patch for pgsql test failure

* Update .travis.yml

* Update CommandTest.php

* Update CommandTest.php

* Update CommandTest.php

try to fix hhvm tests

* Update CommandTest.php
2016-11-15 16:50:41 +01:00
6caedd1ff6 added test for MySQL index hints, #10869 2016-11-15 14:10:41 +01:00
3a6fbad561 phpDoc: Fix example for ActiveRelationTrait::via() (#13008) [skip ci] 2016-11-15 13:30:04 +03:00
793c618b5b Merge pull request #13003 from SDKiller/patch-1
Fix incorrect return type in phpdocs [skip ci]
2016-11-15 10:39:31 +02:00
aca6ea9290 Fix incorrect return type in phpdocs [skip ci]
Internally used `setValues()`, `addValues()` methods return array
2016-11-15 02:46:36 +03:00
3913e6ebcf fixed changelog 2016-11-15 00:26:53 +01:00
b782fc8ed9 Default cache ttl (duration) property (fixes #6809) (#12990)
* Default cache ttl (duration) property (fixes #6809)

* Updates after PR review (related #6809)

* Updates after more PR reviews (related #6809)
2016-11-15 00:06:08 +01:00
9a1c168939 Updates after more PR reviews (related #6809) 2016-11-14 23:53:09 +01:00
556e9cf99b Updates after PR review (related #6809) 2016-11-14 23:53:09 +01:00
8df1017f42 Default cache ttl (duration) property (fixes #6809) 2016-11-14 23:53:09 +01:00
1157657cab Fixed incorrect order of migrations history in case yii\console\controllers\MigrateController::$migrationNamespaces is in use 2016-11-14 14:24:53 +02:00
bfabb1e2b2 Update ManagerInterface.php 2016-11-13 17:29:36 +01:00
332637db83 Fixed EmailValidator`to prevent false-positives checks
Fixed EmailValidator`to prevent false-positives checks when property `checkDns` is set to `true`

Fixes #12714
2016-11-13 18:12:34 +02:00
14b4f52e44 Updated CHANGELOG 2016-11-13 18:02:54 +02:00
20a411d8ab Fixed #12822: Fixed datetime creation from microseconds, added tests to \i18n\Formatter::asTimestamp 2016-11-13 18:02:54 +02:00
66e7e945a8 Merge pull request #12983 from rob006/doc-fixes
Phpdoc fixes
2016-11-13 17:48:01 +02:00
9de80810f2 Merge branch 'doc-fixes' of github.com:rob006/yii2-dev into doc-fixes 2016-11-13 15:37:00 +01:00
1a70f60332 Merge master into doc-fixes
Conflicts:
	framework/web/AssetManager.php
2016-11-13 15:35:18 +01:00
9cb7125921 @return bool in ErrorHandler::handleError() 2016-11-13 15:27:23 +01:00
324b38d504 #12976: improved phpdoc wording 2016-11-13 17:15:02 +03:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
450eefaa50 Some phpdoc fixes from scrutinizer. 2016-11-12 22:11:30 +01:00
cf0952406d Cosmetic changes in console controller. 2016-11-12 21:35:19 +01:00
4b1f17db8f Merge pull request #12975 from evgen-d/master
Migrations order fix
2016-11-12 18:18:00 +02:00
35ce3ba611 Docs updated
Closes #11747
2016-11-12 18:04:23 +02:00
6a4ea892c3 Added type mapping for varbinary data type in MySQL DBMS
Closes #11756
2016-11-12 17:34:20 +02:00
5c3cdd792b fix code style 2016-11-12 18:15:27 +03:00
3d3d69e3a8 returned back orderBy() 2016-11-12 18:06:02 +03:00
25ebf03a8d Fixed ValidatorTest::testValidateWithEmpty()
Closes #12848
2016-11-12 16:20:41 +02:00
95f2c82009 Fixed the cryptic unstructured doc block (#12978) [skip ci] 2016-11-12 17:05:13 +03:00