Commit Graph

5123 Commits

Author SHA1 Message Date
Tomas Votruba
bf5fffcc74 Updated Rector to commit 1d07f2626d04cd5ebeb6c35b444b3e28ce51c5ec
1d07f2626d [build] Expect diffs
2023-09-27 14:38:01 +00:00
Tomas Votruba
8c5990c74a Updated Rector to commit 07f9aa02529af0e5a33c6ee98a2d2730d813ee2b
07f9aa0252 [build] no PR on build rector
2023-09-27 14:37:52 +00:00
Tomas Votruba
92b441a510 Updated Rector to commit 5879d88416676e80021ce61eb169c4d70422b2bf
5879d88416 [build] add back php 7.4 test
2023-09-27 14:35:58 +00:00
Tomas Votruba
429a7683b2 Updated Rector to commit 4726d37f988476ab4d31d8d969a211aedd92aa51
4726d37f98 [build] fix build e2e paths to use installed rector package
2023-09-27 14:30:16 +00:00
Tomas Votruba
73c6f075ef Updated Rector to commit 0ed14ec01d843a1266dce5c2e267861fe623c46c
0ed14ec01d [build] Remove bare run, as the build package depends on phpstan/phpstan, required to be installed as 3rd party
2023-09-27 14:23:34 +00:00
Tomas Votruba
891fb430c5 Updated Rector to commit b7ef56e7b2273c94f7ce08691ac5c8f227d5ab7d
0c64b6d7ee [build] require phpstan/phpstan
b7ef56e7b2 [build] note about local run
2023-09-27 14:21:07 +00:00
Tomas Votruba
941ed47703 Updated Rector to commit 7a87774b97c52dba78556810b984720935ded53a
1e683dcaf1 move up
7a87774b97 [build] fix to existing dirs
2023-09-27 14:03:07 +00:00
Tomas Votruba
de657e6fed Updated Rector to commit cb4e5de3792cb2006383a70152ed0556642ca336
cb4e5de379 [build] do not update dev depenencies after phpstan/phpstan removal
2023-09-27 13:44:26 +00:00
Tomas Votruba
8bfbd2f5d4 Updated Rector to commit 4faaeba9f3cb1cce8d85db4e29dac2bc76b1933e
4faaeba9f3 remove unused phpstan-for-rector.neon
2023-09-27 13:08:26 +00:00
Tomas Votruba
0bac9c9526 Updated Rector to commit 5fb68b4a0c04c968a8edaa3556406838d4748757
5fb68b4a0c InlineConstructorDefaultToPropertyRector Readonly Class (#5085)
2023-09-27 13:06:03 +00:00
Tomas Votruba
a776210800 Updated Rector to commit 1a65049a8834272e812d10de3954ffeb88f47296
1a65049a88 move up
2023-09-27 13:05:05 +00:00
Tomas Votruba
cd9ba20d46 Updated Rector to commit ecdb4c7ff209be89c5ae98bddc4124d0cd437a0a
b5c14e699c [build] Remove needs for custom config
ecdb4c7ff2 trigger
2023-09-27 13:02:52 +00:00
Tomas Votruba
1d1339dd53 Updated Rector to commit b483230a5bb027f24dbfe46e5a4416abd6b4788f
b483230a5b [Performance] Remove regex for check start with big letter on ShortNameResolver (#5084)
2023-09-26 21:57:19 +00:00
Tomas Votruba
b9b9c81ade Updated Rector to commit 50eb9efa1098d832343761d0af398449c726caf9
50eb9efa10 [Performance] Avoid ReflectionProvider check function exists on NameImportingPostRector (#5083)
2023-09-26 21:41:55 +00:00
Tomas Votruba
000dcd9b3b Updated Rector to commit 50e589ca482e73daea8d2d4949c9ec9869fa59a3
50e589ca48 Feature/fix class annotation bad print (#5081)
2023-09-26 20:43:15 +00:00
Tomas Votruba
d99a91176b Rector 0.18.4 2023-09-25 17:07:54 +00:00
Tomas Votruba
6bcd7272d2 Updated Rector to commit bd4c8dd98828626b78fd1418b1f6c985778a2fb6
bd4c8dd988 [Performance] Avoid unnecessary IO dumpFile() called when file has no change on FileProcessor (#5079)
2023-09-24 12:10:54 +00:00
Tomas Votruba
3487ef9422 Updated Rector to commit 2e86f7660f53eeffb9634f1598a88a821fb6bad1
2e86f7660f [AutoImport] Add test skip start with shebang #!/usr/bin/php -q (#5078)
2023-09-24 11:08:59 +00:00
Tomas Votruba
452859f92f Updated Rector to commit e38909dbc086a70e5564e21d8af87aab9c1dc62d
e38909dbc0 Docblock fix on ShortNameResolver (#5077)
2023-09-24 10:06:03 +00:00
Tomas Votruba
9b44046c45 Updated Rector to commit 4f199368893906bf5d9f89b936e97297888de463
4f19936889 [AutoImport] Skip case insensitive conflict defined class name on $rectorConfig->importNames() (#5076)
2023-09-24 09:51:58 +00:00
Tomas Votruba
4837e829cf Updated Rector to commit 803d9ec70934d3fa4a2d97d8e50bb38729b44d10
803d9ec709 [Docs] Skip collector from rule doc generator command (#5075)
2023-09-24 09:38:32 +00:00
Tomas Votruba
08913427ee Updated Rector to commit 0d9b38d62ebb6f9f1264240c384ca1918c0c45a2
0d9b38d62e DX: Validate paths in RectorConfig->paths() (#5065)
2023-09-24 09:18:15 +00:00
Tomas Votruba
0ea0221716 Updated Rector to commit 061eea0c0aca9f6f15ad35c82d5a9cb5323f3919
061eea0c0a [automated] Apply Coding Standard (#5074)
2023-09-24 00:28:19 +00:00
Tomas Votruba
365373f6ba Updated Rector to commit 59e25d914e4689e707f148d95c76025dc0b01136
59e25d914e [Performance] Remove regex check on open tag spaced check on FileProcessor (#5073)
2023-09-23 18:56:28 +00:00
Tomas Votruba
4b7d5cbe32 Updated Rector to commit 8bfaf450145e25e27e33e0ba2ead4c7348c6aa43
8bfaf45014  [Php80] Mirror switch comment to match to ChangeSwitchToMatchRector  (#5072)
2023-09-23 13:19:03 +00:00
Tomas Votruba
718b62bf2c Updated Rector to commit defd57b99b2f442199c6d4c63357e786d514253b
defd57b99b Move betterNodeFinder,valueResolver,phpDocInfoFactory dependencies from AbstractRector into rules (#5071)
2023-09-23 12:32:25 +00:00
Tomas Votruba
fa675a27fa Updated Rector to commit defd57b99b2f442199c6d4c63357e786d514253b
defd57b99b Move betterNodeFinder,valueResolver,phpDocInfoFactory dependencies from AbstractRector into rules (#5071)
2023-09-23 12:16:30 +00:00
Tomas Votruba
0a1f02d765 Updated Rector to commit 9b319efffa0bb091b0a4cbccffff3b4ed657fb72
9b319efffa [DX] Show warning on AbstractRector::__get() when pull deprecated property from AbstractRector (#5069)
2023-09-23 10:43:41 +00:00
Tomas Votruba
42360f35ac Updated Rector to commit 9abbcb11eef3e62534ab116c5cbcd1e9d58c01f6
9abbcb11ee Fix fixture file names (#5067)
2023-09-22 20:47:52 +00:00
Tomas Votruba
b8d67b2a4f Updated Rector to commit d9d1fd27214af2c55612bfb852bc01b10663d1d6
d9d1fd2721 Check fixtures with PHPStan (#5026)
2023-09-22 15:30:54 +00:00
Tomas Votruba
4ee58b2d9a Updated Rector to commit ecc0a2889157f7da9de1adee1a3f3f581844d2e2
ecc0a28891 fix UT
2023-09-22 12:18:58 +00:00
Tomas Votruba
e39c97513e Updated Rector to commit ecc0a2889157f7da9de1adee1a3f3f581844d2e2
ecc0a28891 fix UT
2023-09-22 12:13:15 +00:00
Tomas Votruba
0e33c04f76 Updated Rector to commit 85a407a1b75939448a0ee6d539ebe86538252e52
85a407a1b7 Deprecate BinarySwitchToIfElseRector as opinionated to allow more suitable match() refactoring (#5064)
2023-09-22 10:40:02 +00:00
Tomas Votruba
4f42274ab7 Updated Rector to commit 85a407a1b75939448a0ee6d539ebe86538252e52
85a407a1b7 Deprecate BinarySwitchToIfElseRector as opinionated to allow more suitable match() refactoring (#5064)
2023-09-22 09:56:10 +00:00
Tomas Votruba
f6beffcb30 Updated Rector to commit 40d127ee553bda3f486546f721a72698830d5b89
40d127ee55 [TypeDeclaration] Test native-type ArrayDimFetch on numeric keys (#5063)
2023-09-21 19:41:14 +00:00
Tomas Votruba
5b032cf2ce Updated Rector to commit c3d2ccfd2e5e40901b152df6b8d0a4275de1f23e
c3d2ccfd2e [NodeTypeResolver] Handle optional array shape on native function like with ArrayDimFetch (#5062)
2023-09-21 17:22:54 +00:00
Tomas Votruba
06467e73f0 Updated Rector to commit 36f0b4ad9751892be63b57ccd95ecc75404c8cee
36f0b4ad97 Make RemoveEmptyClassMethodRector skip deprecated class method, as used for BC (#5061)
2023-09-21 15:47:17 +00:00
Tomas Votruba
1372be8587 Updated Rector to commit 84916ed4ada651a1a8d3afa2d83473d536fd3030
84916ed4ad [TypeDeclaration] Skip ArrayDimFetch for return and param types (#5059)
2023-09-21 13:39:21 +00:00
Tomas Votruba
d97b49ad5b Updated Rector to commit 9f88b630a9999eb596a3f18cbd00965f0033796e
9f88b630a9 [TypeDeclaration] Skip ArrayDimFetch by return array doc on AddMethodCallBasedStrictParamTypeRector (#5058)
2023-09-21 13:34:54 +00:00
Tomas Votruba
4a3e045983 Updated Rector to commit 69055b5aede907500e2fc102c0d8d4747e20df38
69055b5aed [CodingStyle][EarlyReturn] Fix infinite if else on BinarySwitchToIfElseRector+RemoveAlwaysElseRector (#5057)
2023-09-21 12:16:27 +00:00
Tomas Votruba
82fb004302 Updated Rector to commit ad96b1f8c56f4b0f7abd04b049ffbdb6d4e1d0e2
ad96b1f8c5 [NodeTypeResolver] pull getType() on ArrayDimFetch when not mixed type from its variable native definition (#5056)
2023-09-21 11:31:13 +00:00
Tomas Votruba
159eb49f8e Updated Rector to commit 884a47e2b3a1d0f1508f83715c4d18efe00766de
884a47e2b3 [Dep] Remove abandoned phpstan/phpstan-php-parser on require-dev (#5054)
2023-09-20 18:33:19 +00:00
Tomas Votruba
a991908b36 Updated Rector to commit 9c18b86edadc4f9e538d7065a62ba386ec14b6ad
9c18b86eda cleanup
2023-09-20 16:18:13 +00:00
Tomas Votruba
4b8fc3fb05 Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
e698133cad [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053)
2023-09-20 12:55:35 +00:00
Tomas Votruba
3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba
b2b3a0f5cc Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
33fa626297 [DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051)
2023-09-20 12:41:26 +00:00
Tomas Votruba
3a35226590 Updated Rector to commit 5ee831f533cf97bc985b381cfd067122e2a479d2
5ee831f533 [TypeDeclaration] Add return static property support on ReturnTypeFromStrictTypedPropertyRector (#5050)
2023-09-19 13:48:46 +00:00
Tomas Votruba
db78ff1331 Updated Rector to commit 76611f69af76327be04538df7b8c568600ac58c0
76611f69af Deprecate TypedPropertyFromStrictConstructorReadonlyClassRector as based on docblock and public elements; use private elements and property promotion instead (#5049)
2023-09-19 13:45:02 +00:00
Tomas Votruba
09bdee3938 Updated Rector to commit 765e849e612553708296dd501375b49784ad1ca8
765e849e61 Narrow rule complexity, add custom PHPStan to check whole rule complexity tree and spot architecture flaws (#5025)
2023-09-19 13:41:47 +00:00
Tomas Votruba
76a717ee63 Updated Rector to commit e8718df6389c07916c967ae8650e3905a98550b9
e8718df638 typo
2023-09-19 12:25:24 +00:00