3200 Commits

Author SHA1 Message Date
TomasVotruba
4d573cd78c make use of unwrapStmts 2020-01-18 18:15:39 +01:00
Tomas Votruba
4ca86631cd
Fix UnwrapFutureCompatibleIfFunctionExistsRector for no else [c… (#2706)
Fix UnwrapFutureCompatibleIfFunctionExistsRector for no else [closes #2691]
2020-01-18 18:15:16 +01:00
Tomas Votruba
8be51a178b
Merge pull request #2694 from Aerendir/failing-test-case-for-2693
Failing test case for #2693.
2020-01-18 18:14:07 +01:00
TomasVotruba
ef0c88f958 Fix UnwrapFutureCompatibleIfFunctionExistsRector for no else [closes #2691] 2020-01-18 18:10:58 +01:00
Tomas Votruba
14a0ff297d
updated UnwrapFutureCompatibleIfRectorTest (#2691)
updated UnwrapFutureCompatibleIfRectorTest
2020-01-18 18:00:39 +01:00
TomasVotruba
05b6df31e6 [CI] Add check for duplicated fixture after before content 2020-01-18 01:03:39 +01:00
Aerendir
dea62fac89 Failing test case for #2699. 2020-01-17 17:57:37 +01:00
Aerendir
01f5ac9b1a Failing test case for #2696. 2020-01-17 17:31:16 +01:00
Aerendir
a9c5cd4fe3 Failing test case for #2693. 2020-01-17 17:03:00 +01:00
C0pyR1ght
fd90c03618
updated UnwrapFutureCompatibleIfRectorTest
added second test case to unittest
2020-01-17 15:26:38 +01:00
TomasVotruba
9d82c9e76a fix static 2020-01-17 15:21:54 +01:00
TomasVotruba
e1fa6aa628 skip non-empty methods 2020-01-17 15:14:48 +01:00
TomasVotruba
e343b39633 [PHPUnit] Improve GetMockRector 2020-01-17 14:55:07 +01:00
TomasVotruba
9944485d11 [PHPUnit] Add ClassMethod/RemoveEmptyTestMethodRector 2020-01-17 01:26:48 +01:00
TomasVotruba
eafea9d1c7 [PHPUnit] Add GetMockBuilderGetMockToCreateMockRector 2020-01-17 01:04:34 +01:00
TomasVotruba
e1e45ff02e add StaticTypeMapper 2020-01-16 02:04:17 +01:00
Tomas Votruba
15a8b19ba4
Merge pull request #2673 from staabm/patch-3
Added more functions to FunctionSupportResolver
2020-01-16 01:05:43 +01:00
Tomas Votruba
724350e0c6
Added CombineIfRector (#2674)
Added CombineIfRector
2020-01-16 01:05:05 +01:00
Tomas Votruba
80df8d0030
Merge pull request #2672 from jeroensmit/RemoveDelegatingParentCallDefault
Remove delegating parent call
2020-01-16 01:03:13 +01:00
Jeroen Smit
5b06f4828f style 2020-01-15 21:48:14 +01:00
Jeroen Smit
e856fb8ddb Added CombineIfRector 2020-01-15 21:32:51 +01:00
Markus Staab
be2244c8d8
fix CS 2020-01-15 21:01:19 +01:00
Markus Staab
564d05e381
Added list functions supported by the symfony/polyfill* components 2020-01-15 20:57:39 +01:00
Markus Staab
dd8d0322db
Added more functions to FunctionSupportResolver 2020-01-15 20:52:07 +01:00
Tomas Votruba
f680cdf828
Add support for invokable and array callables in CallReflection… (#2670)
Add support for invokable and array callables in CallReflectionResolver
2020-01-15 15:17:40 +01:00
TomasVotruba
ccc63bbb75 decopule ArrayTypeMapper and TypeWithClassNameTypeMapper 2020-01-15 14:51:42 +01:00
TomasVotruba
71cdc8fe40 add mapToDocString() 2020-01-15 14:51:42 +01:00
TomasVotruba
a4e90efb7c use @required 2020-01-15 14:38:40 +01:00
Lctrs
8368644b03 Add support for invokable and array callables in CallReflectionResolver 2020-01-15 14:24:18 +01:00
Lctrs
85fed6766d Add support for stringy calls in CallReflectionResolver
eg `$f = 'date'; $f();`
2020-01-15 09:47:48 +01:00
TomasVotruba
fb9148e83b decopule ResourceTypeMapper 2020-01-14 22:09:24 +01:00
TomasVotruba
5aac9a3d69 decouple CallableTypeMapper, ClosureTypeMapper 2020-01-14 22:06:21 +01:00
TomasVotruba
35911cb872 decouple VoidTypeMapper 2020-01-14 22:04:47 +01:00
TomasVotruba
c28a25a4a3 cleanup, decouple ObjectWithoutClassTypeMapper 2020-01-14 21:54:08 +01:00
Dorian Villet
0f3fc569f2 Split fixtures. 2020-01-14 21:52:25 +01:00
TomasVotruba
6512a764e5 decouple ThisTypeMapper 2020-01-14 21:34:21 +01:00
TomasVotruba
9524ec636c add ParentStaticTypeMapper 2020-01-14 21:23:51 +01:00
TomasVotruba
682869a087 decouple IterableTypeMapper 2020-01-14 21:19:41 +01:00
TomasVotruba
ba72bc847d decouple UnionTypeAnalyzer and UnionTypeAnalysis 2020-01-14 21:15:14 +01:00
TomasVotruba
49b3ca04b8 add TypeMapper 2020-01-14 21:15:14 +01:00
TomasVotruba
f03c521de0 make some use of TypeNodeResolver from PHPStan 2020-01-14 15:26:36 +01:00
TomasVotruba
e64f787cde [PHPStanStaticTypeMapper] Decouple new services to handle PHPStan type mapping 2020-01-14 15:26:36 +01:00
Lctrs
8d80b5b637 Introduce a CallReflectionResolver 2020-01-14 14:31:57 +01:00
Dorian Villet
4ba637f9a2 Merge remote-tracking branch 'origin/master' into AddArrayReturnDocTypeRector/fix-iterable-mixed 2020-01-14 13:17:55 +01:00
Dorian Villet
e4115bdf85 Merge remote-tracking branch 'origin/master' into AddArrayReturnDocTypeRector/skip-parent-phpdoc 2020-01-14 13:16:28 +01:00
Jeroen Smit
ce0bf6d5e3 Code style 2020-01-13 20:37:48 +01:00
Lctrs
173e3ddf15 Migrate from PHPStan's Broker to ReflectionProvider 2020-01-13 14:34:18 +01:00
Jeroen Smit
20bb97e8d2 Better handling for delegating parent rector for parents with default values 2020-01-13 14:18:35 +01:00
Dorian Villet
13ed224a39 [CountOnNullRector] Add failing test case. 2020-01-13 11:27:05 +01:00
TomasVotruba
a94dcb9f2a [Polyfill] Add UnwrapFutureCompatibleIfPhpVersionRector 2020-01-13 02:45:54 +01:00