3054 Commits

Author SHA1 Message Date
TomasVotruba
466b69b897 improve callable type 2020-02-19 00:54:28 +01:00
Tomas Votruba
f5e5906ee8
Merge pull request #2881 from snapshotpl/callable_type
Callable type falling tests
2020-02-19 00:25:23 +01:00
TomasVotruba
1ad8f08ccd [SOLID] Add ChangeReadOnlyVariableWithDefaultValueToConstantRector 2020-02-18 23:59:07 +01:00
Witold Wasiczko
d907822a35
Callable type falling tests 2020-02-18 10:58:11 +01:00
TomasVotruba
868a56ad5a fix test location 2020-02-17 01:52:05 +01:00
Tomas Votruba
dba5604685
Merge pull request #2697 from Aerendir/failing-test-case-for-2696
Failing test case for #2696.
2020-02-17 01:28:17 +01:00
TomasVotruba
1498108d95 fix single line comment 2020-02-17 00:03:28 +01:00
TomasVotruba
6d0e77fe1a skip traits in CountOnNullRector 2020-02-16 19:07:37 +01:00
TomasVotruba
895f09b150 fix paths 2020-02-16 18:42:57 +01:00
Tomas Votruba
b8c730dc5c
Merge pull request #2631 from gnutix/AddArrayReturnDocTypeRector/skip-parent-phpdoc
[AddArrayReturnDocTypeRector] sets a less specific type in child method (mixed[]) than is defined in parent method (SomeObject[])
2020-02-16 18:29:16 +01:00
TomasVotruba
8cd2cfee5b fix callable print [closes #2841] 2020-02-16 18:13:52 +01:00
Tomas Votruba
58df5c5f31
Merge pull request #2859 from rectorphp/const-property
Apply properties to constants rule from SOLID
2020-02-16 17:51:17 +01:00
Tomas Votruba
49eb6ef5f7
Merge pull request #2650 from gnutix/CountOnNullRector/should-understand-variables-in-trait-methods
[CountOnNullRector] Should understand array/countable variable in trait method
2020-02-16 17:50:30 +01:00
TomasVotruba
d1b4779889 apply properties to constants rule from SOLID 2020-02-16 17:47:00 +01:00
TomasVotruba
401d0aeaf6 fix namespaces, fixtures, add getThrowsTypes() 2020-02-14 23:35:40 +01:00
TomasVotruba
3bb87fcc1c correct location 2020-02-14 21:20:46 +01:00
Tomas Votruba
5113d23776
Merge branch 'master' into 2824-annotate-throwables 2020-02-14 20:34:43 +01:00
Aerendir
f3449d886f Prepare to manage the other cases. 2020-02-14 17:29:16 +01:00
TomasVotruba
d4a32b4e1b improve create command 2020-02-14 15:48:45 +01:00
TomasVotruba
bf722ad9b5 move nette to rules 2020-02-14 10:51:33 +01:00
Aerendir
bd691a6dc5 Improve namings. 2020-02-14 03:04:20 +01:00
TomasVotruba
42c5141d70 [Renaming] Add RenameFuncCallToStaticCallRector 2020-02-13 17:12:38 +01:00
TomasVotruba
2a779b86c2 rename generator to rules 2020-02-13 17:10:07 +01:00
TomasVotruba
daba8df475 improve original format in CallableTypeNode 2020-02-13 15:39:15 +01:00
TomasVotruba
6072707458 decouple RegexPatternDetector 2020-02-13 11:09:51 +01:00
TomasVotruba
11f401daf9 fix ChangeQuerySetParametersMethodParameterFromArrayToArrayCollection location 2020-02-13 11:09:07 +01:00
Tomas Votruba
6d944620b4
Merge pull request #2821 from vladyslavstartsev/setParameters-to-ArrayCollection
rector for doctrine setParameters method
2020-02-12 10:48:37 +01:00
Aerendir
9fa8812571 Fix a partial import. 2020-02-12 01:52:47 +01:00
Aerendir
d4d733c1fa #2824: Improve names of variables. 2020-02-12 01:23:24 +01:00
Aerendir
d2460d4cec #2824: Support functions. 2020-02-12 01:15:05 +01:00
Aerendir
12670ed9df #2824: Automatically add to DocBlock comments the thrown \Throwables. 2020-02-12 00:57:48 +01:00
TomasVotruba
bc5eefdb76 improve AddSeeTestAnnotationRector 2020-02-11 14:40:59 +01:00
TomasVotruba
4aac338d20 improve ParamTypeDeclarationRector complexity 2020-02-11 14:11:47 +01:00
TomasVotruba
3e5dd77bb6 move Rector-rule based packages from /packages to /rules 2020-02-11 13:41:37 +01:00
Vladyslav Startsev
118cfd282e implemented basic of moving from array to ArrayCollection in setParameters method.
Only works in if you extend basic EntityRepository, but for all types
(Doctrine\ORM\Query, Doctrine\ORM\NativeQuery, Doctrine\ORM\QueryBuilder)
2020-02-11 00:12:01 +02:00
TomasVotruba
1abb9835e5 fix missing attribute aware 2020-02-10 10:56:32 +01:00
TomasVotruba
8d47291c96 decouple PhpParser mappers to StaticTypeMapper 2020-02-10 10:30:13 +01:00
TomasVotruba
2a930f893d decopule StaticTypeMapper, NameScopeFactory and StirngTypeToPhpParserNodeMapper 2020-02-10 10:17:05 +01:00
TomasVotruba
292c7125b6 decouple NodeCollector package 2020-02-10 10:05:15 +01:00
TomasVotruba
9de9fa9611 rename PerNode to Node 2020-02-10 09:58:04 +01:00
TomasVotruba
ca3f502aa1 decopule PropertyFetchTypeResolver 2020-02-10 01:46:03 +01:00
TomasVotruba
9f359d5847 cleanup 2020-02-10 01:24:01 +01:00
TomasVotruba
51e9f2776e remove unused method 2020-02-10 01:22:10 +01:00
TomasVotruba
f97bd059cb remove duplicated method 2020-02-10 00:57:38 +01:00
TomasVotruba
aaa5ffa8f4 decopule new VendorLock package 2020-02-10 00:30:20 +01:00
TomasVotruba
e3d34567fd NodeNameResolver decoupled to own package 2020-02-09 23:47:00 +01:00
TomasVotruba
c52f03a019 [ECS] Remove cognitive complexity ignores 2020-02-09 23:13:12 +01:00
TomasVotruba
f5f992b0b3 decouple function node finder and collector from ParsedNodesByType 2020-02-09 12:09:29 +01:00
TomasVotruba
5a3ede3de4 decouple ParentConstantReflectionResolver 2020-02-09 10:43:47 +01:00
TomasVotruba
b1df495b85 fix protected parent constant override 2020-02-09 01:28:32 +01:00