Commit Graph

758 Commits

Author SHA1 Message Date
Tomas Votruba
d39c210590 Updated Rector to commit 25821f6212
25821f6212 [TASK] Add documentation about FileProcessors (#121)
2021-06-13 11:31:37 +00:00
Tomas Votruba
ab3b6b2c9e Updated Rector to commit 651562dca2
651562dca2 [automated] Re-Generate Nodes/Rectors Documentation (#211)
2021-06-13 10:00:46 +00:00
Tomas Votruba
4e4ad99d9a Updated Rector to commit 1a3afef04d
1a3afef04d PHPStan updated and static fixes (#192)
2021-06-10 10:46:24 +00:00
Tomas Votruba
06272681a5 Updated Rector to commit f3b3c8727f
f3b3c8727f [docs] example and title for tests (#191)
2021-06-09 15:02:10 +00:00
Tomas Votruba
a8594a1335 Updated Rector to commit e50ad80290
e50ad80290 [tests] fix rectors custom naming convention (#188)
2021-06-09 13:08:07 +00:00
Tomas Votruba
d29020633e Updated Rector to commit 3158767ccb
3158767ccb [automated] Re-Generate Nodes/Rectors Documentation (#157)
2021-06-06 07:59:41 +00:00
Tomas Votruba
3167527b46 Updated Rector to commit 02f9524e34
02f9524e34 [DowngradePhp80] Add DowngradeNamedArgumentRector (#133)
2021-06-01 12:39:02 +00:00
Tomas Votruba
d6ce660185 Updated Rector to commit 0864547a0d
0864547a0d [automated] Re-Generate Nodes/Rectors Documentation (#125)
2021-05-30 07:54:06 +00:00
Tomas Votruba
8ef1dfb7af Updated Rector to commit ed8191fb64
ed8191fb64 [Docs] Fixes rector_rules_overview.md docs link in each rules (#92)
2021-05-23 09:33:26 +00:00
Tomas Votruba
10b65060a2 Updated Rector to commit cefe13feab
cefe13feab fix rector rules overview dump location (#49)
2021-05-16 08:19:51 +00:00
Tomas Votruba
df00621605 Updated Rector to commit c7700cfbd4
c7700cfbd4 [Docs] Copy docs to rector-prefixed-downgraded/ as well (#34)
2021-05-14 21:27:39 +00:00
github-actions[bot]
dd41106ee4
[automated] Re-Generate Nodes/Rectors Documentation (#6396)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-05-09 02:15:50 +02:00
Tomas Votruba
ac82ae6a63
Move from SETS parameter to explicit import() (#6375) 2021-05-06 20:06:31 +00:00
Tomas Votruba
5fe3eb555f
[PHP 5.3] Add DirConstToFileConstRector (#6363) 2021-05-05 21:56:59 +00:00
github-actions[bot]
ea0061264a
[automated] Re-Generate Nodes/Rectors Documentation (#6281)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-05-02 10:26:23 +02:00
Tomas Votruba
ca4d1fb1aa
[TypeDeclaration] Traverse the param node that is changed in ParamTypeFromStrictTypedPropertyRector (#6260) 2021-04-28 20:33:20 +00:00
Sebastian Schreiber
255b1fcbf7
[TASK] Add template type option for init command (#6233) 2021-04-25 21:43:59 +02:00
github-actions[bot]
08aab90348
[automated] Re-Generate Nodes/Rectors Documentation (#6236)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-04-25 11:44:34 +02:00
Tomas Votruba
764c311565
[docs] add auto imports docs (#6240) 2021-04-25 11:43:24 +02:00
Tomas Votruba
31c06b2fcb
[docs] add Static Reflection and Autoload (#6238) 2021-04-25 11:04:04 +02:00
Tomas Votruba
a3ec81fe1f
Add setter/getter factory (#6219) 2021-04-23 18:14:51 +00:00
Tomas Votruba
ff57c49662
[PHP 7.2] Add covariant param support for trait methods (#6190)
* [Downgrade PHP 7.2] Handle trait methods too

* move DowngradeParameterTypeWideningRector to Class_ namespace

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 00:02:38 +02:00
github-actions[bot]
2b88d9d937
[automated] Re-Generate Nodes/Rectors Documentation (#6163)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-04-18 15:01:56 +02:00
Tomas Votruba
268b32ff7e
[DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector (#6151)
* [DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 23:38:44 +02:00
Rob Landers
27f3544e8e
Fix nullsafe transpile (#6101)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-04-15 19:16:27 +00:00
Tomas Votruba
8b402bfe02
Make use of File object instead of passing around provider of file info, tokens, stmts etc. (#6110)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-13 00:12:48 +00:00
Tomas Votruba
26a5b86892
[Privatization] Remove MakeUnusedClassesWithChildrenAbstractRector as risky and full context is needed (#6091) 2021-04-10 20:18:49 +02:00
Tomas Votruba
b2412ad62a
Refactor doctrine/annotation from dynamic to own static-reflection parser (#5974)
* remove doctrine/annotations

* Refactor doctrine/annotation parser to static reflection with phpdoc-parser

* remove doctirne-annotation-parser-syncer

* remove annotation stubs

* use nodes

* almost there

* [ci-review] Rector Rectify

* skip temporary

* phpstan: remove fixed messages

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 11:01:11 +02:00
Zing
ff9173ff35
Stripping quotation marks of argument default value (#5997) 2021-03-26 13:45:54 +07:00
Tomas Votruba
27e9ad030a
Remove buggy rules that depend on false condition of all class and calls analysis, to improve static reflection (#5958)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-23 23:13:35 +01:00
Tomas Votruba
89a7afb5a4
Merge DeadDocBlock to DeadCode (#5936) 2021-03-21 12:57:56 +00:00
Abdul Malik Ikhsan
be39fb9a75
[Doc] Remove unused images assets and apply phpunit image in readme (#5933) 2021-03-21 10:52:56 +01:00
Abdul Malik Ikhsan
57acbe7cdc
[Doc] Documentation how to register custom SetList contant (#5921) 2021-03-20 14:10:13 +01:00
Markus Staab
9e0c9a5c03
docs: fix path to tests and namespace in "how to add a test" (#5910) 2021-03-19 23:45:34 +07:00
Dominik Peters
dc94477d54
Migrate at to with consecutive and will return on consecutive calls (#5822) 2021-03-18 00:11:23 +01:00
Tomas Votruba
0ac0e54b02
[Naming] Removing underscore rules, rather handle with coding standards (#5868) 2021-03-15 23:24:43 +00:00
Tomas Votruba
683f8319a8
[CI] simplify php linter (#5867)
* [CI] simplify php linter

* [CI] merge code analysis to one

* [docs] remove nodes overview, already in external repository

* remove unused ci job

* [CI] check annotation parser + sync

* [DeadCode] Remove RemoveEmptyAbstractClassRector, not reliable with static-reflection, opionated

* [CI] remove set validation, PHPStan handles this better with PHP

* remove dead-code-strict [skip ci]
2021-03-15 23:44:28 +01:00
Tomas Votruba
d897902ccf
[Downgrade] Keep better phpdoc type (#5862) 2021-03-15 18:58:04 +01:00
github-actions[bot]
bd1a0f1be7
[automated] Re-Generate Nodes/Rectors Documentation (#5840)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-03-14 01:55:25 +01:00
Tomas Votruba
721f619a1d
Post moving cleanup (#5827) 2021-03-12 23:52:38 +00:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure (#5826) 2021-03-12 23:20:25 +01:00
Tomas Votruba
c791f5ed60
[RectorGenerator] Decouple to external package (#5825) 2021-03-12 20:13:27 +01:00
Tomas Votruba
67670e70ad
[DX] move packages from src/tests to single PSR-4 directory (#5824) 2021-03-12 01:21:29 +00:00
github-actions[bot]
65e43f3dfa
[automated] Re-Generate Nodes/Rectors Documentation (#5788)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-03-07 12:24:31 +01:00
Tomas Votruba
382f146eaf
Merge CoreRectorInterface (#5762) 2021-03-03 22:28:27 +01:00
Jan Mikeš
cdd11f69c6
[Docker] Documented multiple supported PHP versions (#5734) 2021-03-02 22:16:38 +01:00
Tomas Votruba
d5bf66f9cd
[CI] run rules dir by dir to identify static reflection weak sposts (#5720)
* [CI] run rules dir by dir to identify static reflection weak sposts

* [ci-review] Rector Rectify

* consistency

* remove unused property

* add data provider test fixture

* add InvertedIfFactory to lower complexity

* [DeadCode] Skip unused public method if data provider

* misc

* [DeadCode] Do not remove class method if required by parent ocntract

* make use of ContextAnalyzer to find the loop

* narrow dirs one level

* narrow packages

* narrow

* use directly

* narrow

* correct constant name to keep BC

* bump deps

* add version_compare to removed extra params, just to be sure

* do not return function node on unchanged name

* narrow

* add support for multiple variants

* widen

* remove double check [skip ci]

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-02 14:43:36 +01:00
Tomas Votruba
05788745fd
[Downgrade] Remove excessive abstract class inheritance, use single service (#5717) 2021-03-01 12:10:50 +00:00
Markus Staab
74a54f3bc4
Fix url to nodes-overview (#5695)
* Fix url to nodes-overview

* Update create_own_rule.md

* Update README.md
2021-02-28 10:36:32 +01:00
github-actions[bot]
510252cdc5
[automated] Re-Generate Nodes/Rectors Documentation (#5698)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-02-28 08:52:22 +01:00