Commit Graph

99 Commits

Author SHA1 Message Date
Maksim Spirkov
28b6ca7002 Fix #20485: Fix error Cannot unset string offsets in yii\di\Instance:ensure(['__class' => ...], 'some\class\name'), Integrate PHPStan for static analysis 2025-08-26 22:01:33 +03:00
Максим Спирков
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
Mihail
5c168215d3 Fix #20276: Removed autogenerated migration phpdoc 2024-11-12 01:57:49 +03:00
Razvan Grigore
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
Ihor Sychevskyi
0f21d51648 update links (#19523) 2022-08-27 10:02:08 +02:00
Anton
a1df078c7b Fix translators in messages/config.php (#19416)
* Fix translators in `messages/config.php` 

#19415

* Update messageConfig.php

* Update config.php

* Update messageConfig.php

* Update CHANGELOG.md

* Update framework/CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>

Co-authored-by: Bizley <pawel@positive.codes>
2022-05-30 11:52:06 +02:00
Brandon Kelly
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
Zalatov Alexander
74c6797a41 Terminate unterminated JS statement in views/ErrorHandler/exception.php (#17611) 2019-10-15 11:29:39 +03:00
Bizley
e50a07c30c Fix #17437: Fixed generating namespaced migrations 2019-07-23 17:28:43 +03:00
Alexander Kartavenko
0fcd495583 Fixes #16394: Fixed issues in migrate/create when specifying default values with colons and adding multiple columns 2019-06-26 12:44:24 +07:00
Sergei Sergeev
a7276f6b72 Fixes #17152: Fixed error page when using traceline option 2019-03-18 00:34:47 +03:00
Vladimir Reznichenko
f9b03dfd42 SCA with Php Inspections (EA Ultimate) 2018-02-27 19:06:27 +01:00
Aleksandar Belic
b566dd522c Fixes #15272: Removed type attribute from script tag 2018-02-14 13:39:48 +03:00
Гордиенко Владислав Юрьевич
7cafa65ad2 Fixes #15216: Added yii\web\ErrorHandler::$traceLine to allow opening file at line clicked in IDE 2018-02-07 22:36:29 +03:00
Klimov Paul
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
Alexander Makarov
6b0be47e0f Fixes #14711: Fixed yii\web\ErrorHandler displaying exception message in non-debug mode 2018-01-22 11:41:24 +03:00
Vitor
c1323c84ba Fixes #15300: Fixed "Cannot read property 'style' of undefined" error at the error screen 2018-01-21 22:37:30 +03:00
Elvira Sheina
b953a184e3 Fixes #13919: Added option to add comment for created table to migration console command 2018-01-15 18:30:52 +03:00
Nikolay Oleynikov
75dbdb0083 Fixes #14568: Refactored migration templates to use safeUp() and safeDown() methods 2017-11-15 00:49:40 +03:00
Carsten Brandt
0199325c81 Fixes #14958: Added options to copy stacktrace and search for error message to the exception page 2017-10-15 12:09:27 +03: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
Dmitry V. Alexeev
1761a10c13 Added phpdoc to migration template [skip ci] 2017-08-03 13:15:23 +03:00
Alexander Makarov
acf29e0001 Fixes #14492: Fixed error handler not escaping error info debug mode 2017-07-21 12:49:33 +03:00
Robert Korulczyk
d2781cd232 Added configuration for headers in PHP files generated by message/extract command (#14417) 2017-07-10 20:14:54 +03: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
Alexander Makarov
3a6a590eae Fixes #13945: Removed Courier New from error page fonts list since it looks bad on Linux (#13947) 2017-04-09 22:51:02 +03:00
Nikolay Oleynikov
558f2aa02a Fixes #13827 Generate "safe" methods uncommented by default 2017-03-23 00:53:14 +03:00
Nikolay Oleynikov
cf4eea1878 Fixes #13823: Refactored migrations template 2017-03-22 18:28:33 +03:00
Alexander Makarov
a6d266405d Fixes #13671: Fixed error handler trace to work correctly with XDebug 2017-03-06 15:24:18 +03:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
MKiselev
4f89265fff Fixes #12748: Migration generator now tries to fetch reference column name for foreignKey from schema if it's not set explicitly 2016-11-01 02:02:16 +03:00
Paul Klimov
8aa0e85a07 Add migration namespace support (#12511)
namespace support added to `BaseMigrateController`
2016-09-12 14:01:04 +03:00
Nikola Kovacs
84124bec4f Fix grammar in migration template docblocks. (#12148)
Fix typo in test file's name.
2016-08-12 17:55:43 +03:00
Alexander Makarov
6728d5d0e0 Fixes #11965: fixed docs for MessageController only and except 2016-07-15 21:46:14 +03:00
Robert Korulczyk
5992eea571 Fixes #11808: _table and _column suffixes are now required when generating migration 2016-07-04 12:50:37 +03:00
Sam Mousa
2ac17ddae6 Simplified exception page Javascript
- Removed unused block.
- Removed Sizzle library from exception page.
- Fixed highlighting hovering over code lines

close #10967
2016-04-26 18:34:31 +02:00
Angel Guevara
b923adf75c Enh: Support for useTablePrefix parameter in migrate command
Fixes #11166: migrate command new option `useTablePrefix`
2016-04-06 13:37:37 +03:00
Angel Guevara
49aec24ae1 Enh: Migrate command now supports foreign keys
Fixes #11207: migrate command can create foreign keys
2016-04-05 01:02:52 +03:00
Angel Guevara
3cbd64547a Additional phpdoc for #11187 2016-03-27 23:38:23 +03:00
Angel Guevara
2ccf9e46f8 documentation snippet 2016-03-24 18:13:25 -06:00
Carsten Brandt
360eb03d5c remove min.js sourcemap hint from error page
fixes #10919
2016-02-25 15:35:35 +01:00
Vadym Chenin
ccfd9cb536 Fixes #8329: Added support of options for message console command 2015-11-25 06:12:52 +03:00
Daniel Gomez Pan
2a1764f97a Enhancements for #9465 2015-11-23 13:33:26 +03:00
Alexander Makarov
76e8556d34 #9465 better naming, code polish, changelog, docs wording 2015-11-20 22:50:32 +03:00
Daniel Gomez Pan
9afd240ab6 Fixes #9465: ./yii migrate/create now generates code based on migration name and --fields 2015-11-20 22:08:47 +03:00
Alexander Makarov
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
Alexey Rogachev
760cc03194 Removed extra line break
Caused by #9440
2015-08-25 09:54:18 +06:00
Alexey Rogachev
777c45a653 Removed yii\db\Schema from use section
Declaration of yii\db\Schema is not needed by default. Migration can be related with changing data or renaming column, so user should explicitly add it when it's needed.
2015-08-17 15:42:06 +06:00
Carsten Brandt
2cd4837f41 fixed display issue with overlapping text in callstack item
fixes #4763
2015-07-26 01:08:42 +02:00
Andrey Nester
716057ed39 Fixes #9059: Fixed PHP Notice in error handler view 2015-07-24 12:22:05 +03:00