5567 Commits

Author SHA1 Message Date
Tomas Votruba
9145e6685f composer: require nette/di to allow phpstan extension with Reference class 2019-08-05 16:50:34 +02:00
Tomas Votruba
d22f3d009c trait resolving can work with missing vendor parent class 2019-08-05 14:57:29 +02:00
Tomas Votruba
72b91209c7 [DeadCode] Add RemoveUnusedDoctrineEntityMethodAndPropertyRector 2019-08-04 23:39:48 +02:00
Tomáš Votruba
541ffe975c
Merge pull request #1808 from rectorphp/resolver
Correct NameResolver::getName() + cleanup static analysis
2019-08-04 20:50:19 +02:00
Tomas Votruba
02463d2bc3 cleanup phpstan errors 2019-08-04 20:49:03 +02:00
Tomas Votruba
201a8f31fa update getName() 2019-08-04 20:41:51 +02:00
Tomáš Votruba
eb0486ee03
add alias support to PropertyTypeDeclarationRector (#1807)
add alias support to PropertyTypeDeclarationRector
2019-08-04 15:00:24 +02:00
Tomas Votruba
6548c5e5fa add alias support to PropertyTypeDeclarationRector 2019-08-04 14:47:35 +02:00
Tomáš Votruba
368c8b79d5
use DateTimeInterface over DateTime (#1806)
use DateTimeInterface over DateTime
2019-08-04 14:22:31 +02:00
Tomáš Votruba
7b7daa242e
Merge pull request #1805 from rectorphp/doctrine-alias
resolve target entity from same namespace
2019-08-04 14:15:46 +02:00
Tomas Votruba
12ca3349ce resolve target entity from same namespace 2019-08-04 14:14:10 +02:00
Tomáš Votruba
3ca838735d
fix nullable array type param for PropertyTypeDeclarationRector (#1804)
fix nullable array type param for PropertyTypeDeclarationRector
2019-08-04 14:09:16 +02:00
Tomas Votruba
f929cea9b0 fix nullable array type param for PropertyTypeDeclarationRector 2019-08-04 13:53:50 +02:00
Tomáš Votruba
ccb47ac5b3
fix nullable for xToOne annotation by default (#1803)
fix nullable for xToOne annotation by default
2019-08-04 13:49:03 +02:00
Tomas Votruba
f3235553dd fix nullable for xToOne annotation by default 2019-08-04 13:38:42 +02:00
Tomáš Votruba
4097daa585
add iterable return type for yield values in ReturnTypeDeclarat… (#1802)
add iterable return type for yield values in ReturnTypeDeclarationRector
2019-08-04 13:18:58 +02:00
Tomas Votruba
1a085ce7e1 decouple same-entity-test case 2019-08-04 13:18:28 +02:00
Tomas Votruba
acc28ca681 split doctrine_relation test to toOne and toMany 2019-08-04 13:15:55 +02:00
Tomas Votruba
9410c0039e add iterable return type for yield values in ReturnTypeDeclarationRector 2019-08-04 13:05:40 +02:00
Tomáš Votruba
8b6eb0981c
Merge pull request #1799 from snapshotpl/iterable-function
Falling test: Iterable return type in function when yield used
2019-08-04 01:41:07 +02:00
Tomáš Votruba
023acabfde
Merge pull request #1798 from snapshotpl/constructor-with-alias-param
Falling test: invalid alias import to @var
2019-08-04 00:45:24 +02:00
Witold Wasiczko
fb72139d27 Iterable return type in function when yield used 2019-08-04 00:42:18 +02:00
Witold Wasiczko
28dc08049d
Merge branch 'master' into constructor-with-alias-param 2019-08-04 00:20:02 +02:00
Tomáš Votruba
d738cbb43e
Merge pull request #1796 from bendavies/PropertyTypeDeclarationRector-doctrine-ManyToOne-nullable-default
failing testcase for PropertyTypeDeclarationRector
2019-08-04 00:19:50 +02:00
Tomáš Votruba
349b3e46e5
Merge pull request #1793 from snapshotpl/break-doctrine-relation-in-same-namespace
Break class name in @var when relation is defined in same namespace
2019-08-04 00:19:27 +02:00
Witold Wasiczko
99751e384c Falling test: aliased import invalid use in @var 2019-08-04 00:17:48 +02:00
Tomáš Votruba
65c97a8a74
Merge pull request #1797 from snapshotpl/nullable-array-param
Falling test: nullable array param generate wrong @var
2019-08-04 00:08:06 +02:00
Witold Wasiczko
31403d9e45
Update packages/TypeDeclaration/tests/Rector/Property/PropertyTypeDeclarationRector/Fixture/doctrine_relation.php.inc
Co-Authored-By: Tomáš Votruba <tomas.vot@gmail.com>
2019-08-04 00:03:20 +02:00
Ben Davies
4771774968 failing testcase for PropertyTypeDeclarationRector
Doctrine *ToOne are nullable by default
2019-08-03 23:02:27 +01:00
Witold Wasiczko
43354955bd Falling test: nullable array param generate wrong @var 2019-08-03 23:58:50 +02:00
Tomáš Votruba
a5a65d8ba3
fix method call type (#1794)
fix method call type
2019-08-03 18:21:36 +02:00
Tomas Votruba
2844f635cc fix method call type 2019-08-03 18:21:14 +02:00
Witold Wasiczko
81b657b335 Break class name in @var when relation is defined in same namespace 2019-08-03 17:00:04 +02:00
Tomas Votruba
02a7b1b9e3 use DateTimeInterface over DateTime 2019-08-01 18:31:49 +02:00
Tomas Votruba
2c67698a21 add PropertyTypeDeclarationRector to type-declaration set v0.5.9 2019-08-01 15:53:04 +02:00
Tomáš Votruba
01ca3aa1ef
[CodingStyle] remove extra break from BinarySwitchToIfElseRector (#1791)
[CodingStyle] remove extra break from BinarySwitchToIfElseRector
2019-08-01 14:17:57 +02:00
Tomáš Votruba
b2ed5c77df
add xToOne relation support to Doctrine var type resolver (#1789)
add xToOne relation support to Doctrine var type resolver
2019-08-01 14:10:39 +02:00
Tomas Votruba
5a0258cc55 [CodingStyle] remove extra break from BinarySwitchToIfElseRector 2019-08-01 14:09:18 +02:00
Tomáš Votruba
4bd48c4983
fix laravel53 config (#1790)
fix laravel53 config
2019-08-01 14:08:43 +02:00
Tomas Votruba
3ff942ae51 fix laravel53 config 2019-08-01 14:06:08 +02:00
Tomas Votruba
977a6c02de add xToOne relation support to Doctrine var type resolver 2019-08-01 14:04:52 +02:00
Tomáš Votruba
f1decfd723
Merge pull request #1788 from rectorphp/infer-return
infer from @return doc type in PropertyTypeDeclaratoin
2019-08-01 11:56:33 +02:00
Tomas Votruba
09708aabe9 fix incorrect null 2019-08-01 11:12:37 +02:00
Tomas Votruba
aeb101312e re-use function return type resolving 2019-08-01 10:18:30 +02:00
Tomas Votruba
310ef2ae6e infer from @return doc type in PropertyTypeDeclaratoin 2019-08-01 10:04:49 +02:00
Tomáš Votruba
fcf3409584
Merge pull request #1787 from rectorphp/nullable-return
add return nullable type to GetterOrSetterPropertyTypeInferer
2019-08-01 01:03:21 +02:00
Tomas Votruba
bf2faee295 add return nullable type to GetterOrSetterPropertyTypeInferer 2019-08-01 01:02:23 +02:00
Tomáš Votruba
a3615948bc
Merge pull request #1786 from rectorphp/typed-complex
add priority to PropertyTypeInfererInterface and put doctrine infering first
2019-08-01 00:36:42 +02:00
Tomas Votruba
4e8ff948d8 add priority to PropertyTypeInfererInterface and put doctrine infering first 2019-08-01 00:28:31 +02:00
Tomáš Votruba
6ebd32d327
[TypeDeclaration] Add PropertyTypeDeclarationRector (#1781)
[TypeDeclaration] Add PropertyTypeDeclarationRector
2019-07-30 13:41:31 +02:00