110 Commits

Author SHA1 Message Date
TomasVotruba
3a9375007e decouple Set package 2020-07-21 01:39:24 +02:00
Jonathan Goode
287af13177 Create WrapVariableVariableNameInCurlyBracesRector 2020-07-20 18:23:19 +01:00
TomasVotruba
c1e1053d1c correct names manually back to desired state 2020-07-19 21:32:18 +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
Jonathan Goode
cdb3e889cf Create new TernaryConditionVariableAssignmentRector
Ignore false positives in PHPStan
2020-07-16 16:40:04 +01:00
TomasVotruba
0c816d60f8 [config] switch rules config from YAML to PHP 2020-07-16 12:48:54 +02:00
TomasVotruba
2023d41061 fix import of already existing param/var/return type or class annotation 2020-07-12 19:38:46 +02:00
dobryy
0475976343 separately 2020-07-10 00:15:05 +02:00
dobryy
f7db882990 aliased property 2020-07-10 00:12:44 +02:00
dobryy
29df0327ab Skip aliased class names 2020-07-09 23:48:59 +02:00
TomasVotruba
231ae7dc77 make ReturnArrayClassMethodToYieldRector work with multi return 2020-07-09 01:23:10 +02:00
TomasVotruba
252ff65a96 add failing test case 2020-07-09 01:08:29 +02:00
TomasVotruba
bdff80e972 improve docs code highlight 2020-07-07 12:15:52 +02:00
TomasVotruba
5619e735b3 [CodingStyle] Make UnderscoreToPascalCaseVariableNameRector skip native variables, like _SERVER 2020-07-06 00:36:33 +02:00
dobryy
98045758dd Split into two rules and skip magically accessed property names 2020-07-05 21:48:23 +02:00
TomasVotruba
8776345920 decouple createConcat() method 2020-07-04 18:01:55 +02:00
dobryy
0eb87f03e7 pull request comments related changes 2020-07-04 17:03:52 +02:00
dobryy
f10fe2b33d update rule to support multiple occurrences of the class in the string 2020-07-03 23:54:20 +02:00
Tomas Votruba
6f0c28469a
Merge pull request #3613 from dobryy/replace-in-string-classes-rule 2020-07-01 21:26:27 +02:00
dobryy
4a3fdf3705 Add new rector to replace hardcoded class name reference in string with class keyword reference 2020-07-01 20:30:28 +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
c504062ec2 add typed property if on PHP 7.4 2020-06-24 15:09:50 +02:00
TomasVotruba
c0cc31aa7e fix php parser factory name 2020-06-21 13:47:24 +02:00
TomasVotruba
75b8d37e4b extend test case 2020-06-19 12:06:46 +02:00
TomasVotruba
34c40428f3 add VIRTUAL_NODE constant, prevent double post traversing nodes 2020-06-19 01:35:11 +02:00
TomasVotruba
de0dbc6876 add BreakingREmovalGuard, CommentableNodeResolver, and @fixme to un-removable nodes in ini_get/ini_set 2020-06-18 12:07:26 +02:00
TomasVotruba
03cf74ce31 add static call check 2020-06-18 01:12:19 +02:00
TomasVotruba
54cf6f02d7 [README] Add Zenika sponsor 2020-06-17 14:55:09 +02:00
TomasVotruba
aff10cf014 [Autodiscovery] Do not nest already correct name 2020-06-10 19:59:15 +02:00
TomasVotruba
64215c43e6 [PHP 7.4] Prevent already used property name 2020-06-07 01:18:09 +02:00
TomasVotruba
212cbd209e [PHP 7.4] Add conflicting short import typed property fix 2020-06-06 18:20:00 +02:00
TomasVotruba
c4595c7b69 update to php-parser 4.5 2020-06-03 11:39:18 +02:00
TomasVotruba
4fb1f982f9 [CodingStyle] Add RemoveDoubleUnderscoreInMethodNameRector 2020-05-31 18:03:31 +02:00
Tomas Votruba
8c83b60aea
Merge pull request #3415 from rectorphp/coding-style-under 2020-05-25 17:38:33 +02:00
TomasVotruba
e3463b1073 add comments constant to prevent typos 2020-05-25 17:03:48 +02:00
TomasVotruba
ec3b928c7d [CodingStyle] UnderscoreToCamelCaseVariableAndPropertyNameRector 2020-05-25 00:51:08 +02:00
TomasVotruba
387ded5ecc [Kdyby to Contributte] Add Subscriber migration 2020-05-24 18:52:54 +02:00
Tim Ward
c772ce2f6b
Fix code style 2020-05-20 15:45:12 -04:00
Tim Ward
4899b1217c
Guard against ShouldNotHappenException
See #3391
2020-05-20 15:05:31 -04:00
TomasVotruba
ffeb6c9f53 [PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector 2020-05-14 00:35:00 +02:00
TomasVotruba
87448dfa37 [PHP 5.5] Fix StringToClass name whilst import 2020-05-13 16:05:11 +02:00
kodiakhq[bot]
dbfaf6e11d
Merge pull request #3358 from rectorphp/functions-to-static-class
[Legacy] Add FunctionToStaticMethodRector
2020-05-13 13:59:20 +00:00
TomasVotruba
0c67709fd0 [Legacy] Add FunctionToStaticMethodRector 2020-05-13 15:50:30 +02:00
Bart Reunes
e2409b791e
Create an empty node before moving on
If we don't redeclare the $phpDocInfo variable, it will fail at the next line, as calling a method on null will fail.
2020-05-12 18:06:49 +02:00
TomasVotruba
8017402e60 [CodingStyle] Add SplitGroupedUseImportsRector 2020-05-12 12:35:57 +02:00
TomasVotruba
a7b9019437 making RemoveUnusedAliasRector case insensitive 2020-05-09 22:29:47 +02:00
TomasVotruba
f229a7a3f5 Fix RemoveUnusedAliasRector for lower/upper case 2020-05-09 21:32:57 +02:00