50 Commits

Author SHA1 Message Date
Tomas Votruba
d75e8011a3
[PHP 7.0] Fix node adding to NonVariableToVariableOnFunctionCallRector (#4000)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 15:36:09 +02:00
Dmytro Naumenko
fc6e584721
Failing test: Reset in a condition produces a LogicException (#3997) 2020-08-22 15:20:56 +02:00
Tomas Votruba
786095f328
refactoring of variable name counted (#3999)
* fix variable rename scoping

* [rector] fix variable rename scoping

* [cs] fix variable rename scoping

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 13:02:55 +00:00
Dmytro Naumenko
04597e9685
Failing test: Multiple resets of the same func in a array (#3998) 2020-08-22 13:03:27 +02:00
Tomas Votruba
86a3252d0d
fix class call (#3990)
* fix class call

* [rector] fix class call

* [cs] fix class call

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-19 14:14:08 +00:00
Oliver Nybroe
4090c58ce1
Add failing test case for #3981 (#3986) 2020-08-19 15:45:50 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type (#3973) 2020-08-18 17:57:30 +02:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types (#3936)
* phpstan: require iterable types

* add link on relative path and line

* fix missing class type

* typed array in Rector code + add data provide support resolver

* remove duplicated set

* drop unused yaml ecs config

* add out-of-the-box directory for 3rd party packages

* static fixes

* [rector] static fixes

* [cs] static fixes

* [rector] [cs] static fixes

* generic types

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… (#3889)
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop

* [Order] Enable rule in CI

* [rector] [Order] Enable rule in CI

* [cs] [Order] Enable rule in CI

* [Order] Use constant for number of max attempts and throw exception when exceeded.

* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.

* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02:00
TomasVotruba
2ad011673f [PHP 7.0] Fix variable name on static call 2020-07-30 15:53:21 +02:00
Tomas Votruba
1796665137
Merge pull request #3825 from fsok/failing_test_3824
Add failing test case for issue 3824
2020-07-30 15:35:43 +02:00
TomasVotruba
fe72e003ed use constants in configs 2020-07-30 13:53:53 +02:00
Felix Sokoliuk
5d6e5964b9 add failing test case for issue 3824 2020-07-30 00:29:45 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
d94e529f29 [Nette] Improve AddDatePickerToDateControlRector 2020-07-27 10:44:51 +02:00
TomasVotruba
7ed4cb19c4 simplify config globs 2020-07-25 20:14:28 +02:00
TomasVotruba
44040eba97 [Nette] Add external form factory support 2020-07-24 17:16:37 +02:00
Jonathan Goode
7da3310cf6 Move existing Rector from the coding-style set to the php70 set 2020-07-21 10:23:25 +01:00
TomasVotruba
3a9375007e decouple Set package 2020-07-21 01:39:24 +02:00
TomasVotruba
c2c1066374 [rector] apply on rules 2020-07-19 20:52:42 +02:00
TomasVotruba
0944b75f7e correct namespace in configs 2020-07-18 11:58:17 +02:00
TomasVotruba
f8c50ee885 switch config.yaml to config.php 2020-07-16 13:45:20 +02:00
TomasVotruba
0c816d60f8 [config] switch rules config from YAML to PHP 2020-07-16 12:48:54 +02:00
TomasVotruba
19685f35e3 apply cs 2020-07-08 01:48:44 +02:00
TomasVotruba
3c3c3a9530 remove func call from methods calls 2020-07-06 01:59:41 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
3d0d42dcc1 fixup! code style 2020-06-21 12:08:41 +02:00
TomasVotruba
6a53e7014f code style 2020-06-21 12:03:35 +02:00
Derrick Schoen
7fc8036946 Fix syntax
Remove unused variable
2020-06-20 19:48:52 -04:00
derrickschoen
ba657c6fe1
Update rules/php70/tests/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector/Fixture/fixture.php.inc
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-06-20 19:41:06 -04:00
derrickschoen
a3a039a0c0
Update rules/php70/tests/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector/Fixture/fixture.php.inc
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-06-20 19:40:50 -04:00
Derrick Schoen
7cbf77f952 Make the test use RunnableInterface 2020-06-20 19:20:12 -04:00
Derrick Schoen
c2da307e2d If a class could be inherited, "$this->"" needs to become "static::" instead of "self::" 2020-06-19 09:09:46 -04:00
TomasVotruba
9922ba600b make Rector description required for dumping documentation 2020-06-16 13:47:57 +02:00
TomasVotruba
0c67709fd0 [Legacy] Add FunctionToStaticMethodRector 2020-05-13 15:50:30 +02:00
TomasVotruba
28c18eb663 make use of isLocalMethodCallNamed() 2020-05-09 22:37:22 +02:00
TomasVotruba
b0bd524e53 apply constant decouple 2020-05-06 23:40:31 +02:00
TomasVotruba
8e0deaa2b4 handle Symplify 7.3 deprecations in CS 2020-05-03 21:10:05 +02:00
TomasVotruba
00b3184eb3 [Naming] Add RenamePropertyToMatchTypeRector 2020-05-02 22:36:11 +02:00
TomasVotruba
1bf62ac1c7 [cs] sort private methods by call order and property by complexity 2020-04-26 02:57:47 +02:00
TomasVotruba
8082b3a2f2 [PHP 8.0] Add str_starts_with 2020-04-23 23:06:36 +02:00
TomasVotruba
98b1277549 various suffix fixes 2020-04-23 22:31:58 +02:00
TomasVotruba
00797bbce3 [CodeQuality] Add SplitListScalarAssignToSeparateLineRector 2020-04-19 16:20:08 +02:00
TomasVotruba
dd3db1d28b fix ThisCallOnStaticMethodToStaticCallRector in prefixed rector 2020-04-08 17:33:08 +02:00
TomasVotruba
c68b31f636 fix generics 2020-04-03 00:48:44 +02:00
TomasVotruba
a1e5ecd7c2 generics 2020-04-03 00:38:36 +02:00
TomasVotruba
626287ec76 apply privatization 2020-03-29 00:06:05 +01:00
TomasVotruba
d608507f2e rename PHP sets to comply with standard 2020-03-24 23:44:42 +01:00