5567 Commits

Author SHA1 Message Date
Tomáš Votruba
0279ce0ff2
Merge pull request #1710 from ravanscafi/multilevel-array-subset
[MethodCall] Fix multilevel array subsets
2019-07-09 08:32:01 +02:00
Ravan Scafi
8bf272e585
Fix multilevel array subsets 2019-07-08 18:13:31 -03:00
Ravan Scafi
aca9cfbd76
Don't add $result to parse_str if second parameter is already set 2019-07-08 15:11:34 -03:00
Tomáš Votruba
797e8adb93
Merge pull request #1707 from ravanscafi/varconstant
Don't mess with lines between docblock comment and var type.
2019-07-08 18:35:25 +02:00
Ravan Scafi
7c9e153e6a
Don't mess with lines between docblock comment and var type. 2019-07-08 11:51:50 -03:00
Jeroen Smit
b8cb084573 Fixed some issues for RemoveZeroAndOneBinaryRector (#1702)
* Fixed issue where '1 / x' is considered to be equal to 'x'
Fixed issue where '($var + 1)' inside another expression is considered to be equal to '1'
Expanded unit test for ValueResolver

* Made tests more explicit
2019-07-06 22:53:29 +02:00
Jeroen Smit
6f9a587ca8 Fixed wrong naming of docs script in composer.json (#1705)
* Fixed wrong naming of docs script in composer.json
Regenerated docs
2019-07-06 21:51:36 +02:00
Tomáš Votruba
3cbf485ce6
Make sure parameter is not removed when a child class does use… (#1701)
Make sure parameter is not removed when a child class does use the parameter
2019-07-06 21:44:52 +02:00
Tomáš Votruba
7c3bbfa237
Fixed unintended removal of properties when used inside a trait (#1703)
Fixed unintended removal of properties when used inside a trait
2019-07-06 21:34:01 +02:00
Jeroen Smit
9d0f043cfd Remove docblock 2019-07-06 19:29:37 +02:00
Tomáš Votruba
915588a8c7
Merge pull request #1694 from aboks/patch-1
Add rector.yaml to .dockerignore
2019-07-06 19:06:06 +02:00
Tomáš Votruba
94d8e38210
Merge pull request #1704 from jeroensmit/temp-path-fix
Fixed failing unit test when sys_get_temp_dir() != '/tmp'
2019-07-06 18:49:59 +02:00
Tomáš Votruba
3baa863e86
Merge pull request #1699 from ravanscafi/update-composer-scripts
Update composer scripts
2019-07-06 18:46:43 +02:00
Ravan Scafi
f05c025f59
Fix complete-check call to docs 2019-07-06 13:37:27 -03:00
Jeroen Smit
5a5f25e5a9 Fixed failing unit test when sys_get_temp_dir() != '/tmp' 2019-07-06 17:59:59 +02:00
Jeroen Smit
68cfefc36e Fixed unintended removal of properties when used inside a trait 2019-07-06 17:52:02 +02:00
Jeroen Smit
50ceaa61d2 Make sure parameter is not removed when a child class does use the parameter 2019-07-06 17:42:22 +02:00
Tomáš Votruba
38c00ffb46
Merge pull request #1697 from ravanscafi/static-constant-call
[DeadCode] Allow static constant call on RemoveUnusedPrivateConstantRector
2019-07-06 16:07:10 +02:00
Tomáš Votruba
c7adeba25f
Merge pull request #1698 from ravanscafi/fix-return-type
Fix NameTypeResolver@resolveFullyQualifiedName return type
2019-07-06 15:54:36 +02:00
Ravan Scafi
a20aaf95ba
Allow private constants being called with static:: 2019-07-05 18:02:53 -03:00
Ravan Scafi
8b121967f1
Add failing test showing the bug 2019-07-05 18:02:53 -03:00
Ravan Scafi
1673949cef
Fix NameTypeResolver@resolveFullyQualifiedName return type 2019-07-05 17:42:05 -03:00
Tomas Votruba
70cf0e33b2 [PHPUnit][Symfony] Add AddMessageToEqualsResponseCodeRector 2019-07-05 18:56:19 +03:00
Tomáš Votruba
6c8761c7e8
[PHPStan] Add RemoveNonExistingVarAnnotationRector (#1695)
[PHPStan] Add RemoveNonExistingVarAnnotationRector
2019-07-05 18:25:34 +03:00
Tomas Votruba
6095a810ad fix cs 2019-07-05 18:12:37 +03:00
Tomas Votruba
5a898f593c remove unused @var annotatoins 2019-07-05 18:04:11 +03:00
Tomas Votruba
8af6dd3dc3 [PHPStan] Add RemoveNonExistingVarAnnotationRector 2019-07-05 18:00:27 +03:00
Tomáš Votruba
bd4a0d678b
[Doctrine] Add RemoveRepositoryFromEntityAnnotationRector (#1693)
[Doctrine] Add RemoveRepositoryFromEntityAnnotationRector
2019-07-05 14:04:34 +03:00
Arnout Boks
75ed6321ad
Add rector.yaml to .dockerignore
This is the rector configuration file for developing on rector itself, and should not be used in runtime.

Without this change, the docker image (which runs with `/rector` as its working directory) would use this `rector.yaml` as the default configuration file. This leads to unexpected effects, such as rector ignoring any `tests/`-directory by default.
2019-07-05 13:03:42 +02:00
Tomas Votruba
b001969944 [Doctrine] Add RemoveRepositoryFromEntityAnnotationRector 2019-07-05 13:52:26 +03:00
Tomáš Votruba
ec8923d81c
[Architecture] Add ConstructorInjectionToActionInjectionRector (#1691)
[Architecture] Add ConstructorInjectionToActionInjectionRector
2019-07-05 13:44:47 +03:00
Tomas Votruba
fbf0aa275f [Architecture] Add ConstructorInjectionToActionInjectionRector 2019-07-05 13:34:17 +03:00
Tomáš Votruba
fe85a71698
Merge pull request #1690 from rectorphp/strlen-zero
[CodeQuality] Add StrlenZeroToIdenticalEmptyStringRector
2019-07-05 00:31:42 +03:00
Tomas Votruba
fadc28afa3 [CodeQuality] Add StrlenZeroToIdenticalEmptyStringRector 2019-07-05 00:31:24 +03:00
Tomáš Votruba
abb1c78252
[CodeQuality] Add is_a with string true (#1689)
[CodeQuality] Add is_a with string true
2019-07-05 00:11:47 +03:00
Tomas Votruba
d94e26822d [CodeQuality] Add is_a with string true 2019-07-05 00:06:01 +03:00
Tomáš Votruba
6574c11c15
[Symfony] Set few default common service names for Symfony App… (#1687)
[Symfony] Set few default common service names for Symfony App Analyzer
2019-07-04 15:44:04 +03:00
Joseph Bielawski
6d23c758a4 [Symfony] Set few default common service names for Symfony App Analyzer
Allow to set custom ones via configuration
2019-07-04 13:55:37 +02:00
Tomáš Votruba
048ce8c545
Merge pull request #1686 from stloyd/issue-1663
[Bugfix] PHPDoc type-hint `resource` should not be used as PHP type-hint
2019-07-04 13:45:26 +03:00
Joseph Bielawski
34e1a8d465 [Bugfix] PHPDoc type-hint resource should not be used as PHP type-hint 2019-07-04 12:33:28 +02:00
Tomáš Votruba
8e76f1ca12
Add parent::__construct() to command dependencies (#1681)
Add parent::__construct() to command dependencies
2019-07-04 12:48:21 +03:00
Tomas Votruba
154a4e4012 Fix ContainerGetToConstructorInjectionRector to add parent::__construct() to commands 2019-07-04 12:37:01 +03:00
Tomáš Votruba
c1f541dece
fix new phpstan reports (#1684)
fix new phpstan reports
2019-07-04 12:36:41 +03:00
Tomas Votruba
57602fc3a9 fix new phpstan reports 2019-07-04 12:29:37 +03:00
Tomáš Votruba
e0510f6870
Merge pull request #1677 from stloyd/patch-1
[Bugfix] `IsCountableRector` & `IsIterableRector` should first check method availability
2019-07-04 09:40:12 +03:00
Tomas Votruba
125dac4066 use set over level 2019-07-03 23:27:34 +03:00
Tomáš Votruba
cce7911308
Merge pull request #1679 from stloyd/patch-2
[MakeCommandLazyRector] Remove duplicated check
2019-07-03 21:51:36 +03:00
Joseph Bielawski
7f3f6bb0af
[MakeCommandLazyRector] Remove duplicated check 2019-07-03 16:31:37 +02:00
Joseph Bielawski
e60f81fbed [Bugfix] PassFactoryToEntityRectorTest should depend on system /tmp directory 2019-07-03 14:08:35 +02:00
Joseph Bielawski
03b4bdd1b9 [Bugfix] IsCountableRector & IsIterableRector should first check method availability 2019-07-03 13:37:12 +02:00