2877 Commits

Author SHA1 Message Date
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
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
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
TomasVotruba
a94dcb9f2a [Polyfill] Add UnwrapFutureCompatibleIfPhpVersionRector 2020-01-13 02:45:54 +01:00
TomasVotruba
a03f78027b rename UnwrapFutureCompatibleIfRector to UnwrapFutureCompatibleIfFunctionExistsRector 2020-01-13 00:03:10 +01:00
TomasVotruba
6b6350d2bc separate 2020-01-12 23:34:34 +01:00
TomasVotruba
1b6f616cf9 import names 2020-01-12 23:34:34 +01:00
TomasVotruba
ef982e3df3 remove old manual nodes 2020-01-12 22:42:38 +01:00
TomasVotruba
ded6e13996 fix cs 2020-01-12 22:42:38 +01:00
TomasVotruba
efabe2d986 move usage from BetterPhpDocParser ast nodes to AttributeAwarePhpDoc 2020-01-12 21:42:20 +01:00
TomasVotruba
8d00bd8e02 generate AttributeAware nodes + factories 2020-01-12 21:42:20 +01:00
TomasVotruba
464eb22030 Add PHPStanAttributeTypeSyncer 2020-01-12 21:42:19 +01:00
TomasVotruba
3fec96049b Add nested array const type 2020-01-12 00:49:54 +01:00
TomasVotruba
4358dbc1a1 Extend AddDoesNotPerformAssertionToNonAssertingTestRector by catching more test messages 2020-01-11 23:56:53 +01:00
Tomas Votruba
8876a62deb
Merge pull request #2640 from gnutix/AddDoesNotPerformAssertionToNonAssertingTestRector/prophecy-failing-test
[AddDoesNotPerformAssertionToNonAssertingTestRector] Add failing test for Prophecy assertions.
2020-01-11 23:21:09 +01:00
Tomas Votruba
57b4359ce9
[CountOnNullRector] fix Rector applying on properties with phpd… (#2637)
[CountOnNullRector] fix Rector applying on properties with phpdocs array
2020-01-11 23:20:35 +01:00
TomasVotruba
fa12a080e4 [CakePHP] Add ImplicitShortClassNameUseStatementRector 2020-01-11 22:14:25 +01:00
TomasVotruba
3050843a49 [CakePHP 3.0] Add AppUsesStaticCallToUseStatementRector 2020-01-11 22:14:25 +01:00
Dorian Villet
58ac2cd797 [AddDoesNotPerformAssertionToNonAssertingTestRector] Add failing test for Prophecy assertions. 2020-01-11 14:48:17 +01:00
Tomas Votruba
413a348e00
[ForeachItemsAssignToEmptyArrayToAssignRector] apply on code it… (#2587)
[ForeachItemsAssignToEmptyArrayToAssignRector] apply on code it should not
2020-01-11 12:34:24 +01:00
Dorian Villet
f9b8a4102d Rename fixtures files. 2020-01-11 12:29:52 +01:00