Commit Graph

5832 Commits

Author SHA1 Message Date
Tomas Votruba
1fdeffe2e1 fix test classes names 2019-09-03 14:02:42 +02:00
Tomas Votruba
1a0db5e25c [PHPUnit] Add AddSeeTestAnnotationRector 2019-09-03 14:02:42 +02:00
Tomáš Votruba
e72491feb2
from helper methods to isStaticType() with PHPStan object typing (#1946)
from helper methods to isStaticType() with PHPStan object typing
2019-09-03 10:25:56 +02:00
Tomas Votruba
0e9465941a rename getNodeStaticType() to getStaticType() 2019-09-03 10:08:30 +02:00
Tomas Votruba
2a0d0d7ac1 from helper methods to isStaticType() with PHPStan object typing 2019-09-03 10:06:04 +02:00
Tomáš Votruba
a5c3bc9707
Merge pull request #1943 from rectorphp/return-trial
Improve covariance in ReturnTypeDeclarationRector
2019-09-03 09:35:59 +02:00
Tomas Votruba
57db278625 add mixed type 2019-09-03 09:28:50 +02:00
Tomas Votruba
cf1514fad6 skip self override 2019-09-02 22:11:41 +02:00
Tomas Votruba
e1bb7a0fcb add covariance test 2019-09-02 21:54:36 +02:00
Tomas Votruba
1bdbc9dadd cleanup dead code 2019-09-02 20:52:44 +02:00
Tomas Votruba
7008685873 make subtype of independent 2019-09-02 20:46:22 +02:00
Tomas Votruba
72b363f60a improve covariance resolution 2019-09-02 20:38:25 +02:00
Tomas Votruba
34f8319292 use findChildrenOfClass() instead of interface + filter 2019-09-02 19:54:18 +02:00
Tomas Votruba
ebbd854a2d skip overriding existing return types 2019-09-02 19:50:16 +02:00
Tomáš Votruba
63747bc84c
remove duplicated code (#1942)
remove duplicated code
2019-09-02 16:22:51 +02:00
Tomas Votruba
194a423c6f composer: downgrade annotation 1.6 for PHP 7.1 2019-09-02 16:17:13 +02:00
Tomas Votruba
b748309775 remove duplicated code 2019-09-02 16:04:03 +02:00
Tomáš Votruba
7d2ffa5337
cleanup type resolving (#1940)
cleanup type resolving
2019-09-02 13:24:56 +02:00
Tomas Votruba
ac08e7c320 cleanup type resolving 2019-09-02 12:50:38 +02:00
Tomáš Votruba
a8643b7576
Merge pull request #1939 from rectorphp/correct-types
Add ReturnedNodesReturnTypeInferer + big *TypeDeclarationRector refactoring
2019-09-02 11:50:17 +02:00
Tomas Votruba
87e4c5e0a8 remove ReturnTypeResolver 2019-09-02 11:40:11 +02:00
Tomas Votruba
8b6331bc01 add AbstarctPriorityAwareTypeInferer 2019-09-02 10:47:09 +02:00
Tomas Votruba
8af87e51c9 Add ReturnedNodesReturnTypeInferer 2019-09-02 10:47:05 +02:00
Tomáš Votruba
19ed72cffc
make use of getProperties(), getMethods(), getConstants() and g… (#1932)
make use of getProperties(), getMethods(), getConstants() and getTraitUses()
2019-09-01 21:55:33 +02:00
Tomas Votruba
d4cd92fa73 add getTraitUses() 2019-09-01 21:47:16 +02:00
Tomas Votruba
2e97a3d315 make use of getProperties() 2019-09-01 21:45:26 +02:00
Tomáš Votruba
3aa78bb505
[TypeDeclaration] Extend ReturnTypeDeclarationRector with incor… (#1938)
[TypeDeclaration] Extend ReturnTypeDeclarationRector with incorrect types override
2019-09-01 00:14:50 +02:00
Tomas Votruba
328fb06ee2 decouple ParamTypeInferer 2019-09-01 00:10:40 +02:00
Tomas Votruba
f9c44ec25e add ReturnedPropertyReturnTypeInferer 2019-09-01 00:07:29 +02:00
Tomáš Votruba
705024674c
uuid rules are now designed to be used at once (#1937)
uuid rules are now designed to be used at once
2019-08-31 14:08:07 +02:00
Tomas Votruba
d1604592bf uuid rules are now designed to be used at once 2019-08-31 14:07:32 +02:00
Tomáš Votruba
4379b4a04b
remove getDoctrine*() methods from PhpDocInfo, use getByType()… (#1935)
remove getDoctrine*() methods from PhpDocInfo, use getByType() instead
2019-08-31 14:00:48 +02:00
Tomas Votruba
72bb8d6ec0 remove getDoctrine*() methods from PhpDocInfo, use getByType() instead 2019-08-31 13:46:48 +02:00
Tomáš Votruba
5ed40e929b
Merge pull request #1934 from rectorphp/uuid-report-old-to-new-table
UUID report old to new table
2019-08-31 13:06:59 +02:00
Tomas Votruba
160c9a6413 report old and new table 2019-08-31 12:49:10 +02:00
Tomas Votruba
a618c07a50 decouple EntityWithMissingUuidProvider class 2019-08-31 12:47:41 +02:00
Tomáš Votruba
2b6b249bb8
add removeNodeFromStatements() method to remove statement witho… (#1933)
add removeNodeFromStatements() method to remove statement without key easily
2019-08-31 10:45:00 +02:00
Tomas Votruba
e466a14616 add removeNodeFromStatements() method to remove statement by key easily 2019-08-31 10:44:41 +02:00
Tomáš Votruba
6a9df3b504
Make type replacement of annotatoin OOP (#1931)
Make type replacement of annotatoin OOP
2019-08-30 23:43:53 +02:00
Tomas Votruba
04d01ffdfe add Symfony Validator annotations 2019-08-30 23:08:03 +02:00
Tomas Votruba
2b51b257e1 decouple PhpDocClassRenamer 2019-08-30 22:29:51 +02:00
Tomáš Votruba
d0e6422dab
[Doctrine] Add stubs instead of full orm dependencies (#1928)
[Doctrine] Add stubs instead of full orm dependencies
2019-08-30 19:59:04 +02:00
Tomas Votruba
596986120d fix doctine removal compat 2019-08-30 16:40:56 +02:00
Tomas Votruba
5618095feb make parser work for missing GeneratedValue and InheritanceType 2019-08-30 10:54:10 +02:00
Tomas Votruba
1cc8592878 add doctrine stubs 2019-08-30 10:04:55 +02:00
Tomáš Votruba
089616456f
Add Sensio TemplateTagValueNode (#1927)
Add Sensio TemplateTagValueNode
2019-08-30 10:00:47 +02:00
Tomas Votruba
e6de2a7d38 add Sensio TemplateTagValueNode 2019-08-30 09:56:56 +02:00
Tomas Votruba
8811c900ea use AST for Symfony annotations 2019-08-30 00:55:23 +02:00
Tomáš Votruba
e473f6b5ae
Merge pull request #1926 from rectorphp/dead-parent-access-override
[DeadCode] Keep parent call delegation in case of accessibility override
2019-08-29 23:41:58 +02:00
Tomas Votruba
06a107fdbb [DeadCode] Keep parent call delegation in case of accessibility override 2019-08-29 23:37:44 +02:00