701 Commits

Author SHA1 Message Date
TomasVotruba
71cfcf4b24 lazy-wip 2017-12-26 23:02:54 +01:00
TomasVotruba
dd29979787 move tests to propper directory for NodeCallerTypeResolver 2017-12-26 22:50:09 +01:00
TomasVotruba
9df23a3c47 use class over string, performance is not different and its more strict 2017-12-26 22:33:38 +01:00
TomasVotruba
dbd6a26cd8 use class over string, as suggested by nikic 2017-12-26 22:11:05 +01:00
TomasVotruba
aaf42913f0 use same architecture for CallerTypes as for Types 2017-12-26 22:08:01 +01:00
Gabriel Caruso
545efa18c3 Add return type to anonymous function 2017-12-26 19:00:17 -02:00
TomasVotruba
62cbdd4fbf make NameTypeResolver match also FQN 2017-12-26 21:19:37 +01:00
TomasVotruba
8b69d0b6d2 clean 2017-12-26 20:14:17 +01:00
TomasVotruba
97251fba81 revert isPrimary() 2017-12-26 20:13:25 +01:00
TomasVotruba
afc2a27234 NodeTypeResolver - add polymorphic dispatching 2017-12-26 20:08:22 +01:00
TomasVotruba
d9c687d7bc complete rest of types 2017-12-26 20:02:10 +01:00
TomasVotruba
07725e2972 make use of getType() on Node 2017-12-26 20:02:06 +01:00
Gabriel Caruso
f4099b8d69 Add test for uppercade keywords 2017-12-26 16:52:26 -02:00
Gabriel Caruso
6e0b17c91e Support keyword in uppercase at ConstFetchResolver 2017-12-26 15:51:29 -02:00
TomasVotruba
87ffa39f40 remove test code 2017-12-26 16:51:26 +01:00
TomasVotruba
ae2d27c2e9 add isPrimary() 2017-12-26 16:51:00 +01:00
TomasVotruba
d6c5b08dc2 [NodeTypeResolver] drop ClassMethodTypeResolver - method cannot have type 2017-12-26 16:05:00 +01:00
TomasVotruba
8abcffdb80 PerNodeTypeResolverInterface - add isPrimary() method, to separate helper resolvers and actually type bearers 2017-12-26 16:05:00 +01:00
TomasVotruba
507109fbd7 drop unused ParserInterface 2017-12-26 16:05:00 +01:00
TomasVotruba
7b287c156e [NodeTypeResolver] micro optimization 2017-12-26 16:05:00 +01:00
TomasVotruba
f0265cf4c4 fix cs 2017-12-25 21:58:36 +01:00
TomasVotruba
17198a2514 fix annotation 2017-12-25 21:57:16 +01:00
TomasVotruba
9bc11691e7 simplify test 2017-12-25 21:57:08 +01:00
TomasVotruba
3e7b8d8aa1 [ReflectionDocBlock] add test case 2017-12-25 21:38:45 +01:00
TomasVotruba
f5807439bc drop unused deprecation method 2017-12-25 21:38:32 +01:00
TomasVotruba
6dc46f5c9a make use of Symplify/PackageBuilder and Symplify/TokenRunner 2017-12-25 21:38:16 +01:00
Tomáš Votruba
ea7ac1ad5c
Merge pull request #212 from rectorphp/node-value-resolver-cleanup
[NodeValueResolver] cleanup of unused classes
2017-12-23 20:35:19 +01:00
TomasVotruba
27f9676228 [NodeValueResolver] drop more unused classes 2017-12-22 10:51:49 +01:00
TomasVotruba
a17a1f456c [NodeValueResolver] drop DeprecationDetector related classes that are used no more 2017-12-22 10:47:52 +01:00
TomasVotruba
b0d1de91ed [ConsoleDiffer] add few comments to make code readable 2017-12-21 16:16:04 +01:00
TomasVotruba
25b733fbf9 [YamlParser] drop for now, focus on PHP 2017-12-20 16:13:35 +01:00
TomasVotruba
c0399030d5 SmartClassReflector: rebuild on source change, mainly for tests 2017-12-20 15:03:13 +01:00
TomasVotruba
aa1d9c0f6c fix tests by making paramter provider aware of source 2017-12-20 14:35:38 +01:00
TomasVotruba
391fdd114b drop CurrentFileProvider, not needed anymore 2017-12-20 14:31:21 +01:00
TomasVotruba
9054207ac5 SourceLocatorFactory: add performance note 2017-12-20 14:29:44 +01:00
TomasVotruba
0e45d22a96 SourceLocatorFactory: drop EvalLocator, not used 2017-12-20 14:23:58 +01:00
TomasVotruba
544a7fee4b test fix 2017-12-20 13:54:32 +01:00
TomasVotruba
4f0ca69671 SmartClassReflector: create ClassReflector just once for source, instead once per file 2017-12-20 13:34:47 +01:00
TomasVotruba
3230944b17 SourceLocatorFactory: make use of files/directories source 2017-12-20 13:34:18 +01:00
TomasVotruba
6c63b7d10a cache SmartClassReflector 2017-12-20 03:28:09 +01:00
TomasVotruba
ead53dbe46 create common locators just once 2017-12-20 03:23:59 +01:00
TomasVotruba
b7019cece8 do not reflect on invalid types 2017-12-20 03:20:38 +01:00
TomasVotruba
92b23cc6d2 SourceLocatorFactory: pass ComposerLoader 2017-12-20 03:08:26 +01:00
TomasVotruba
9630972ae8 remove unused property 2017-12-20 01:18:54 +01:00
TomasVotruba
221042afed add DifferAndFormatter 2017-12-20 01:18:54 +01:00
TomasVotruba
e3971c2976 add ProcessBuilderInstanceRector 2017-12-19 13:21:30 +01:00
Tomáš Votruba
3461103221
Merge pull request #190 from rectorphp/phpunit-narrow-methods
[PHPUnit] Add NarrowMethodsRector
2017-12-19 13:20:28 +01:00
TomasVotruba
8e0bc4ec47 deprecate DeprecationExtractor, out of scope 2017-12-19 03:23:23 +01:00
TomasVotruba
d3b8f891c7 mixed types 2017-12-18 00:59:05 +01:00
TomasVotruba
c193d4b19f phpstan fixes 2017-12-10 02:52:46 +01:00