Commit Graph

3801 Commits

Author SHA1 Message Date
Tomas Votruba
679f8a6710 Updated Rector to commit 0389ec89d79713b46f280cc6f028783c1d4e48b8
0389ec89d7 Improve ArraySpreadInsteadOfArrayMergeRector (#3568) (#3589)
2023-04-08 16:24:17 +00:00
Tomas Votruba
7025ec875c Updated Rector to commit 64cca7759d28f2dc0d17acdf55eb10779818726c
64cca7759d [DeadCode] Improve RemoveUnusedNonEmptyArrayBeforeForeachRector with && (#3587)
2023-04-08 14:11:59 +00:00
Tomas Votruba
470e7f2c55 Updated Rector to commit a6ca5a0e8429d8c1423916c07ba5e72efdeafd44
a6ca5a0e84 Re-apply isVoid() (#3574) (#3586)
2023-04-08 14:00:36 +00:00
Tomas Votruba
cfc4527dfc Updated Rector to commit 77a3c02e661dfd842550aa0597f871bd76e57a13
77a3c02e66 add more fixtures for RemoveUselessParamTagRector (#3585)
2023-04-08 13:33:20 +00:00
Tomas Votruba
3da290e4ab Updated Rector to commit dbb0e196a43d8c14a9de6abeef8fe081e95c51c2
dbb0e196a4 Revert all is* changes (#3584)
2023-04-08 13:25:07 +00:00
Tomas Votruba
9d60770133 Updated Rector to commit e66317aeb276bb0b544e7b4b55057c9dab5fbb73
e66317aeb2 fix cs (#3579)
2023-04-08 11:32:12 +00:00
Tomas Votruba
93412b6620 Updated Rector to commit 000514186cc2843e1bca0ee4f655f5615ac191ab
000514186c Show the fixture file on failing tests (#3577)
2023-04-08 09:56:01 +00:00
Tomas Votruba
aaddfe2522 Updated Rector to commit 59cdfc8d814b094bffd814f4679c828cd45c7ec9
59cdfc8d81 Use isInteger() (#3571)
2023-04-08 01:19:54 +00:00
Tomas Votruba
e7c7a40197 Updated Rector to commit 437cc5aa660262603343cdbb193e0a54abf9037e
437cc5aa66 Use isBoolean() (#3570)
2023-04-08 01:12:35 +00:00
Tomas Votruba
5f5a4162ce Updated Rector to commit 7611dcb05adda44fb14a228574481b3f79d0b9d5
7611dcb05a Use isVoid() (#3574)
2023-04-08 01:08:03 +00:00
Tomas Votruba
32306ae608 Updated Rector to commit aa73118601d7421ca268ce8835efffb27a558008
aa73118601 Use isString() (#3573)
2023-04-08 01:03:37 +00:00
Tomas Votruba
be3c7cb235 Updated Rector to commit 46301c10a803d2b6727270a738e8c9c297b0b10c
46301c10a8 Use isFloat() (#3572)
2023-04-08 00:59:02 +00:00
Tomas Votruba
3ff4433fbb Updated Rector to commit 073f2d62a5beb49e270b2eab2433b60adb974cb6
073f2d62a5 Improve ArraySpreadInsteadOfArrayMergeRector (#3568)
2023-04-07 08:37:53 +00:00
Tomas Votruba
5a5da62b5c Updated Rector to commit a36a4d9fcb244d5d49a45255d9581a16410dff7a
a36a4d9fcb Remove unused imports (#3567)
2023-04-06 09:24:11 +00:00
Tomas Votruba
75f99e1dc0 Updated Rector to commit a36a4d9fcb244d5d49a45255d9581a16410dff7a
a36a4d9fcb Remove unused imports (#3567)
2023-04-05 19:01:37 +00:00
Tomas Votruba
f4c30b037a Updated Rector to commit f8e3c7b0644e4e106e18e3177bcd5eb110e9ab31
f8e3c7b064 [Php72] Remove next attribute usage on ParseStrWithResultArgumentRector (#3566)
2023-04-05 17:38:53 +00:00
Tomas Votruba
716473919b Rector 0.15.24 2023-04-05 08:49:11 +00:00
Tomas Votruba
b77a150be3 Updated Rector to commit 7da150d96df7d252e325917f091db88c4ae4af47
7da150d96d Regenerate preload (#3565)
2023-04-05 08:42:10 +00:00
Tomas Votruba
a5ead5e556 Updated Rector to commit 2380f6a0d7e2872b3705aba38f7ad85735db9eb5
2380f6a0d7 Revert [Tests] Remove RunTestsInSeparateProcesses in rules-tests (#3564)
2023-04-05 00:27:13 +00:00
Tomas Votruba
288d74ea5d Updated Rector to commit be24410a00da07e1aeb4eba8083d0e06f19868a9
be24410a00  [PostRector] Skip remove unused used at @see for Generic tag  (#3562)
2023-04-05 00:15:15 +00:00
Tomas Votruba
c2fef6bfc2 Updated Rector to commit 1da22824edd107108e087d40233769817a2cbe25
1da22824ed [PostRector] Skip remove unused use on used as ConstFetchNode, eg: TypeKind::* (#3560)
2023-04-04 00:56:57 +00:00
Tomas Votruba
a6db7194f4 Updated Rector to commit 622e93f2aa7c4cdcfb8a32388d27ae43df95bb9a
622e93f2aa [Php73] Remove next node attribute usage on ArrayKeyFirstLastRector (#3559)
2023-04-03 18:26:35 +00:00
Tomas Votruba
f5640c1359 Updated Rector to commit 5e5681d9edbb438b5782b45fde6e88650aa3843f
5e5681d9ed [NodeRemover] Use return null after ->removeNode() (#3558)
2023-04-03 17:20:08 +00:00
Tomas Votruba
123448aa91 Updated Rector to commit 3cbf7104d0b81ba1b930ce9a4cd3456e1c082b43
3cbf7104d0 [CodeQuality] Skip empty cases on SwitchTrueToIfRector (#3556)
2023-04-03 08:47:41 +00:00
Tomas Votruba
d7fe9b627b Updated Rector to commit 3cbf7104d0b81ba1b930ce9a4cd3456e1c082b43
3cbf7104d0 [CodeQuality] Skip empty cases on SwitchTrueToIfRector (#3556)
2023-04-02 21:45:54 +00:00
Tomas Votruba
d6c32e5651 Updated Rector to commit 4e2bef6d60eac79f3ccec9606bde2b22ecbe1dd0
4e2bef6d60 [Tests] Remove RunTestsInSeparateProcesses in rules-tests (#3555)
2023-04-02 19:09:15 +00:00
Tomas Votruba
d15c6b74f6 Updated Rector to commit f9aa52afe48fa20eb1328d4e9bf5acddde79d2b6
f9aa52afe4 [PSR4] Remove clone  on PseudoNamespaceToNamespaceRector (#3554)
2023-04-02 19:03:30 +00:00
Tomas Votruba
f91fd0c896 Updated Rector to commit 141f1b0b46f35a1fcd9a5d4ee5d60f4d9976b0d8
141f1b0b46 [PSR4] Remove clone  on NormalizeNamespaceByPSR4ComposerAutoloadRector (#3553)
2023-04-02 18:55:27 +00:00
Tomas Votruba
dadf4ab6f2 Updated Rector to commit d6ecd7340691b5c5cef8bc8a6e02583f110992cd
d6ecd73406 [Php81] Handle assign op append on ReadOnlyPropertyRector (#3552)
2023-04-02 18:27:50 +00:00
Tomas Votruba
925056da62 Updated Rector to commit 2c244ae76817497300cff1943602045748358bb4
2c244ae768 Improve ArraySpreadInsteadOfArrayMergeRector (#3551)
2023-04-02 09:02:48 +00:00
Tomas Votruba
4c6d730e14 Updated Rector to commit 58f00bfd68219a515d8ae49f2bbfcc6a55f8a575
58f00bfd68 [automated] Apply Coding Standard (#3550)
2023-04-02 00:35:49 +00:00
Tomas Votruba
c04c8097dc Updated Rector to commit 1f8d359d731ec0ecd4f92320626e74d2e1b41d05
1f8d359d73 [automated] Re-Generate Nodes/Rectors Documentation (#3549)
2023-04-02 00:33:26 +00:00
Tomas Votruba
77c06429df Updated Rector to commit 53f549df59999185aba90f5043982dec1973d230
53f549df59 [DeadCode] Remove property comment same line on RemoveUnusedPrivatePropertyRector (#3547)
2023-04-01 19:30:08 +00:00
Tomas Votruba
4ee24449c6 Updated Rector to commit a66b295ddf18885a44d7b177ccf65a0014d25b5c
a66b295ddf [Php81] Merge attributes on NewInInitializerRector (#3546)
2023-04-01 17:08:23 +00:00
Tomas Votruba
06c42060c7 Updated Rector to commit 00abc16e64e63e95d534931c6b1f4ef853dbbeb1
00abc16e64 Bump peter-evans/enable-pull-request-automerge from 1 to 3 (#3545)
2023-04-01 15:27:36 +00:00
Tomas Votruba
9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba
0e412b55cb Updated Rector to commit f7e1b1f57e8746e07627799b5d9813e12c1c7b56
f7e1b1f57e [NodeAnalyzer] Use PHPStan ClassReflection to detect anonymous class on ClassAnalyzer (#3543)
2023-03-31 21:41:53 +00:00
Tomas Votruba
817a8ccc28 Updated Rector to commit 58d862b6f54529f25ecb994ea5e7d2c3eb69f210
58d862b6f5 [DeadCode] Remove previous and parent attribute usage on RemoveNullPropertyInitializationRector (#3541)
2023-03-30 20:44:38 +00:00
Tomas Votruba
9b6b4fafd3 Updated Rector to commit fd2e1a181d96cee745529f345d77be55de3f5d17
fd2e1a181d [CodingStyle] Remove previous node attribute on TernaryConditionVariableAssignmentRector (#3540)
2023-03-30 16:42:45 +00:00
Tomas Votruba
ebdd5e73b4 Updated Rector to commit 34ff3246d3d5f040ca66f30a1eb883923962aecd
34ff3246d3 [CodingStyle] Remove parent attribute usage on RemoveFinalFromConstRector (#3536)
2023-03-30 09:04:49 +00:00
Tomas Votruba
45a0f2ccd4 Updated Rector to commit 34ff3246d3d5f040ca66f30a1eb883923962aecd
34ff3246d3 [CodingStyle] Remove parent attribute usage on RemoveFinalFromConstRector (#3536)
2023-03-29 20:33:54 +00:00
Tomas Votruba
bd5371c774 Updated Rector to commit 0d5169dd77c909421aa1de31aac7bdcd502d66aa
0d5169dd77 [Php70] Remove previous attribute usage on ReduceMultipleDefaultSwitchRector (#3537)
2023-03-29 20:33:15 +00:00
Tomas Votruba
8cbca2ef81 Updated Rector to commit 180d9a4fad89124d3f547af178f5179e4d4277ee
180d9a4fad [DeadCode] Remove previous attribute usage on RemoveDeadConditionAboveReturnRector (#3538)
2023-03-29 20:32:46 +00:00
Tomas Votruba
31bf5eb875 Updated Rector to commit 26e570f0d9f0a623cb315f58272f9b96161d3743
26e570f0d9 [CodeQuality] Add SwitchTrueToIfRector (#3535)
2023-03-29 07:34:40 +00:00
Tomas Votruba
bee65d65f2 Updated Rector to commit 8ff7747eab74154d32f76c9db4443762567e6dda
8ff7747eab RemoveNonExistingVarAnnotationRector: Allow return annotations (#3534)
2023-03-29 01:53:56 +00:00
Tomas Votruba
71617cf3ae Updated Rector to commit 8ff7747eab74154d32f76c9db4443762567e6dda
8ff7747eab RemoveNonExistingVarAnnotationRector: Allow return annotations (#3534)
2023-03-28 22:41:17 +00:00
Tomas Votruba
2b57174b33 Updated Rector to commit b3ea98f636dc6f965589eaf5fcf6dcda6e38cd9b
b3ea98f636 [NodeTypeResolver] Make NodeTraverser as property on NodeScopeAndMetadataDecorator (#3532)
2023-03-28 19:24:10 +00:00
Tomas Votruba
dc695d1925 Updated Rector to commit d0d87702a7b9a8140575d4bee3e9695199bb6338
d0d87702a7 [NodeTypeResolver] Make NodeTraverser as property on PHPStanNodeScopeResolver (#3533)
2023-03-28 19:22:16 +00:00
Tomas Votruba
3398669910 Updated Rector to commit 02df44373272ac230c2d8463e0d101a3ce927da2
02df443732 [NodeTraverser] Add NodeConnectingTraverser (#3531)
2023-03-28 16:34:39 +00:00
Tomas Votruba
d1b207c569 Updated Rector to commit 87186dd873893b15bc4ef881348e02a224e16c07
87186dd873 [NodeTypeResolver] Remove NodeScopeAndMetadataDecorator::decorateStmtsFromString() method (#3530)
2023-03-28 15:38:13 +00:00
Tomas Votruba
1cfb5269d3 Updated Rector to commit 9c95c6068576bbb6e76bd2edc8f4ce4588804b2c
9c95c60685 [NodeManipulator] Reduce parent attribute usage on VariableManipulator (#3528)
2023-03-28 01:08:10 +00:00
Tomas Votruba
e96ee0ceef Updated Rector to commit 48f84c3acc91d32e4b0fb9bcb4785acd0e1bcad2
48f84c3acc [CodeQuality] Handle multiple ifs on SimplifyIfExactValueReturnValueRector (#3527)
2023-03-27 20:20:32 +00:00
Tomas Votruba
8178893c28 Updated Rector to commit c260d97de91a056449703ddea5641aba179703b1
c260d97de9 [Privatization] Remove parent attribute usage on PrivatizeFinalClassMethodRector (#3526)
2023-03-27 18:32:49 +00:00
Tomas Votruba
de30caff39 Updated Rector to commit 0f0b936c98b56f89c3ddf262f757dfd2a68853cb
0f0b936c98 Performance: Use faster hashing algo for cache key generation (#3508)
2023-03-27 08:10:28 +00:00
Tomas Votruba
1cbaed467e Updated Rector to commit ae2355d5616d51bff232786ff7604eef2760362f
ae2355d561 [CodingStyle] Remove next node attribute on NewlineAfterStatementRector (#3525)
2023-03-27 07:32:51 +00:00
Tomas Votruba
73258064e6 Updated Rector to commit 29a450266e9b34d7cc2e31e96390f52abcebc76e
29a450266e Update doc links (#3523)
2023-03-26 11:59:34 +00:00
Tomas Votruba
44b210bff3 Updated Rector to commit b167b7109dd698b3f473bd3927a9677e46c2b887
b167b7109d [core] Remove ParentConnectingVisitor from SimpleCallableNodeTraverser (#3520)
2023-03-26 09:53:46 +00:00
Tomas Votruba
3cb738e57e Updated Rector to commit 6d3efd5be7ab2de0a25aebabddb26c497611d4fb
6d3efd5be7 [Core] Set configured file extensions to analyzed files for NodeScopeResolver (#3522)
2023-03-26 08:46:54 +00:00
Tomas Votruba
093f3c0641 Updated Rector to commit ad9b5973ebff338b17452fb0240c1834126f388e
ad9b5973eb [automated] Re-Generate Nodes/Rectors Documentation (#3521)
2023-03-26 00:33:56 +00:00
Tomas Votruba
2955c40fce Updated Rector to commit 6c8aa924ca0e92555f8c8cf30b01ff0ff4fff052
6c8aa924ca [Core] Remove ParentConnectingVisitor usage on AbstractRector (#3519)
2023-03-25 16:53:21 +00:00
Tomas Votruba
7294170d53 Updated Rector to commit 3445422189028175f9d99563c3ec5e5bad86e9b5
3445422189 Remove deprecated @noRector warning (#3518)
2023-03-25 11:20:04 +00:00
Tomas Votruba
4e1a8b2170 Updated Rector to commit d2459d13d512d780cc22f7822bf630717d888969
d2459d13d5 [CodeQuality] Remove next node attribute usage on SimplifyIfNotNullReturnRector (#3517)
2023-03-25 05:15:57 +00:00
Tomas Votruba
4218f60ee4 Updated Rector to commit da3eb400a7a88c180869590fc6cbbcf0ba30ce11
da3eb400a7 [CodingStyle] Make EncapsedStringsToSprintfRector work with two string concat (#3515)
2023-03-24 08:09:24 +00:00
Tomas Votruba
0b3c5d9bcc Updated Rector to commit f22ddc8f18ef345d5e9c99cbb667548c3c854d7d
f22ddc8f18 Add not null compare to FlipTypeControlToUseExclusiveTypeRector (#3513)
2023-03-23 23:21:34 +00:00
Tomas Votruba
2ba3739f7b Updated Rector to commit 6cec8c5e70017c9374ca0135092bd4cb6934ce3d
6cec8c5e70 [CodingStyle] Remove previous node attribute on WrapEncapsedVariableInCurlyBracesRector (#3512)
2023-03-23 19:21:21 +00:00
Tomas Votruba
d8c7bccf74 Updated Rector to commit 5d95d496e4a7583f355a228cca599cab60b09b41
5d95d496e4 [CodeQuality] Remove next node attribute usage on SimplifyIfExactValueReturnValueRector (#3511)
2023-03-23 19:16:38 +00:00
Tomas Votruba
ebdc9526fb Updated Rector to commit d7e8477ce3227d5459fcab5ff8255705614781fd
d7e8477ce3 [CodeQuality] Skip static class const fetch on InlineConstructorDefaultToPropertyRector (#3510)
2023-03-23 17:47:23 +00:00
Tomas Votruba
9d7d2b3376 Updated Rector to commit 697479f14891c51f53e64144826cbe65e2c48dcc
697479f148 Performance: Improve node name resolver performance (#3506)
2023-03-23 15:26:18 +00:00
Tomas Votruba
8e44614ce3 Updated Rector to commit 8609d3b83b7ff1242df1ca54219068e0308dfafa
8609d3b83b Performance: use direct find() instead of lookup all nodes then filter on BetterNodeFinder (#3507)
2023-03-23 08:47:56 +00:00
Tomas Votruba
88b0ceb1d4 Updated Rector to commit b8a0d66cc4eacbc8926e4f9639072007d016a9a3
b8a0d66cc4 Performance: using findFirst() when possible at BetterNodeFinder (#3505)
2023-03-22 20:15:04 +00:00
Tomas Votruba
87fa2ca3ff Updated Rector to commit 5c985c8b82300bdf066861d52b6b9560bb7b38e1
5c985c8b82 Performance: reduce parent attribute usage on BetterNodeFinder (#3504)
2023-03-22 18:11:07 +00:00
Tomas Votruba
f4984ebd62 Rector 0.15.23 2023-03-22 15:22:45 +00:00
Tomas Votruba
b5afb126a3 Updated Rector to commit 5e29a35bb60f92bece6fede8080645e7ba7fc421
5e29a35bb6 Performance: Reduce isObjectType calls (#3502)
2023-03-22 14:20:22 +00:00
Tomas Votruba
6438137a64 Updated Rector to commit b411755c297647bf0350c849e35b63c0de5f20b2
b411755c29 Performance: Prevent trait resolving in NodeTypeResolver (#3501)
2023-03-22 10:18:06 +00:00
Tomas Votruba
5c499ec662 Rector 0.15.22 2023-03-22 09:37:21 +00:00
Tomas Votruba
76fd71553e Updated Rector to commit fa4c805047d25cd7024c1d415aa5550b884101eb
fa4c805047 Reuse AstResolver memoizing on ClassLikeAstResolver (#3498)
2023-03-21 13:15:15 +00:00
Tomas Votruba
fd25bb9710 Updated Rector to commit 28e9cdb10785dc382ba2c9251cf1dde9024affa2
28e9cdb107 [CodeQuality] Skip with ascii on JoinStringConcatRector (#3497)
2023-03-21 02:20:08 +00:00
Tomas Votruba
3dd95533c1 Updated Rector to commit 6481ecdb4f118da8e42e1d7123fc21e6fac21a7f
6481ecdb4f Bump paratest to v7.1.2 to support phpunit 10.0.17 (#3496)
2023-03-20 15:28:39 +00:00
Tomas Votruba
765799a37b Updated Rector to commit ed11caa6ada99a91a251b94c28b89856f20588af
ed11caa6ad Performance: Memoize sipped file paths (#3495)
2023-03-20 15:16:46 +00:00
Tomas Votruba
b17ced80d5 Updated Rector to commit ea0c6c15d9a937b1aebd4991815c7a0bab7f30c0
ea0c6c15d9 [Core] Refactor AstResolver to locate node with SimpleCallableNodeTraverser (#3494)
2023-03-20 11:31:04 +00:00
Tomas Votruba
9186224c78 Updated Rector to commit 172d354a23c7b437f255709c7b85dcf667f41adb
172d354a23 [Core] Ensure locate on same ClassLike name on AstResolver (#3493)
2023-03-20 10:27:23 +00:00
Tomas Votruba
5acf36baff Updated Rector to commit 7dcd5f6503afa3ee7ab086cbfe6afb71cbd6d6ec
7dcd5f6503 Performance: Improve AstResolver caching (#3485)
2023-03-20 08:30:24 +00:00
Tomas Votruba
1af1cd5c12 Updated Rector to commit 5371408babdacb17ccbbe89b4c74281dcb4825c1
5371408bab [Container] Add RectorConfig::containerCacheDirectory() (#3490)
2023-03-19 20:28:32 +00:00
Tomas Votruba
1391f51af4 Updated Rector to commit 13a25fea9ad99131399bc9f79050cc382627254b
13a25fea9a [Config] Increase default nested chain method call limit to 120 (#3491)
2023-03-19 20:14:35 +00:00
Tomas Votruba
97d7f10164 Updated Rector to commit 4abcd4cde6f5e65232a6c14ef3fa88baba125e6b
4abcd4cde6 [automated] Apply Coding Standard (#3489)
2023-03-19 00:37:38 +00:00
Tomas Votruba
38aa496a3d Updated Rector to commit fd7a99af15609fd33962c0468e2f8a7de191f980
fd7a99af15 [Printer] Handle commented code before closing tag on no rule applied print on PhpFileProcessor (#3488)
2023-03-18 12:29:53 +00:00
Tomas Votruba
239ddef8d4 Updated Rector to commit fd7a99af15609fd33962c0468e2f8a7de191f980
fd7a99af15 [Printer] Handle commented code before closing tag on no rule applied print on PhpFileProcessor (#3488)
2023-03-18 09:45:25 +00:00
Tomas Votruba
cefea0d869 Updated Rector to commit 4225ebf21b1feebdf8e09b1234ceb67e3ce82cd5
4225ebf21b [TypeDeclaration] Handle infinite loop on type recursive itself on ReturnTypeFromStrictTypedCallRector (#3487)
2023-03-18 03:52:50 +00:00
Tomas Votruba
73a02c4fb1 Updated Rector to commit e1dd98dc51c214a743fe1785fd264d2ea27efd72
e1dd98dc51 [DowngradePhp73][DowngradePhp74] Fix infinite loop on DowngradeNullCoalescingOperatorRector+DowngradePhp73JsonConstRector (#3484)
2023-03-17 12:44:08 +00:00
Tomas Votruba
f6c94163d8 Updated Rector to commit e1dd98dc51c214a743fe1785fd264d2ea27efd72
e1dd98dc51 [DowngradePhp73][DowngradePhp74] Fix infinite loop on DowngradeNullCoalescingOperatorRector+DowngradePhp73JsonConstRector (#3484)
2023-03-17 11:53:24 +00:00
Tomas Votruba
08280085d7 Updated Rector to commit e11572a6f1004d905766ae88ee7ce8f667009007
e11572a6f1 [Caching] Alternative Fix caching on change config cache not cleared (#3483)
2023-03-16 12:59:13 +00:00
Tomas Votruba
a19af42611 Updated Rector to commit 26c881973810ea90a3061efa5dc57487af184e3b
26c8819738 [TypeDeclaration] Skip mixed condition string on TypedPropertyFromStrictConstructorRector (#3482)
2023-03-16 10:44:18 +00:00
Tomas Votruba
6ac3776e07 Updated Rector to commit 107914ea0b9152a1651f25478a0785db4e96f5f5
107914ea0b [CodingStyle] Skip var ArrayDimFetch on SplitDoubleAssignRector (#3481)
2023-03-16 10:27:27 +00:00
Tomas Votruba
bee2d189ab Updated Rector to commit c240c69f45c29685eeace5ad0737ef049dff5211
c240c69f45 [PostRector] Allow unused alias removal from Use_ on UnusedImportRemovingPostRector (#3477)
2023-03-14 10:21:20 +00:00
Tomas Votruba
30f75fc21f Updated Rector to commit c240c69f45c29685eeace5ad0737ef049dff5211
c240c69f45 [PostRector] Allow unused alias removal from Use_ on UnusedImportRemovingPostRector (#3477)
2023-03-13 22:32:36 +00:00
Tomas Votruba
7ff93790bb Updated Rector to commit 113810116956135df1b1862c9b87ea1bd211c94f
1138101169 [CodeQuality] Add indirect return scalar on ReturnTypeFromStrictScalarReturnExprRector (#3478)
2023-03-13 14:54:55 +00:00
Tomas Votruba
65a343d35a Updated Rector to commit 6cc0a40d5d64b45408f830563aa22c73a41a6e9e
6cc0a40d5d  [Renaming] Remove FileWithoutNamespace from getNodeTypes() on RenameNamespaceRector (#3475)
2023-03-12 01:48:24 +00:00
Tomas Votruba
1306eeaceb Updated Rector to commit b66c8d3174539832217ef9eb805064eb876c83af
b66c8d3174 [PostRector] Add support for no-namespaced code on UnusedImportRemovingPostRector (#3476)
2023-03-12 01:38:32 +00:00
Tomas Votruba
045769c9ec Updated Rector to commit c077c9dda470028f1128a45403fe955caa632133
c077c9dda4 [automated] Apply Coding Standard (#3474)
2023-03-12 00:37:04 +00:00
Tomas Votruba
4ae0d7c74c Updated Rector to commit 874f5e14cbdde6c8094cedcd483eba8764ff1883
874f5e14cb [TypeDeclaration] Skip on ArrayDimFetch on EmptyOnNullableObjectToInstanceOfRector (#3473)
2023-03-11 11:49:02 +00:00
Tomas Votruba
019f8252db Updated Rector to commit a0a6b55350c8199858d63a7302653c8ff87d40ee
a0a6b55350 [Renaming] Remove FileWithoutNamespace from getNodeTypes() on RenameClassRector (#3470)
2023-03-10 15:23:02 +00:00
Tomas Votruba
b4b2b8f25e Updated Rector to commit dc52f2b5bfc3b31c474555ba0155b50ea6211d18
dc52f2b5bf [TypeDeclaration] Handle return from array_map() on ReturnTypeFromStrictTypedCallRector (#3471)
2023-03-10 15:21:11 +00:00
Tomas Votruba
e27f3e5b0b Updated Rector to commit f87827ca264302c24015bc9d2a27a4a288a05682
f87827ca26 Implement  (#3430)
2023-03-09 22:50:19 +00:00
Tomas Votruba
bd50266270 Updated Rector to commit 9d33ac92be2ac793d06d2da7f13a2008544d8d30
9d33ac92be Fix downgrade vendor/tracy .phtml file (#3469)
2023-03-09 14:26:00 +00:00
Tomas Votruba
973f98cb62 Updated Rector to commit c6bd995f8131911e478e24788dd12791ef4b4835
c6bd995f81 Re-enable paratest (#3466)
2023-03-08 15:40:01 +00:00
Tomas Votruba
5e6f195e17 Updated Rector to commit 291aab4a2afd397cff1a37078b0c5b559f5299de
291aab4a2a [AutoImport] Add mirror comment support on first Use_ on no namespace code (#3465)
2023-03-08 15:24:58 +00:00
Tomas Votruba
84c00e601b Updated Rector to commit ed5caee5b1cdecf12b77b1f2944dde539a3b004f
ed5caee5b1 [Renaming] Remove Use_ from getNodeTypes() on RenameClassRector (#3464)
2023-03-08 14:09:44 +00:00
Tomas Votruba
e6981ca53c Updated Rector to commit 4d9b7e841f026d0566ba7afa356503e7d4466e15
4d9b7e841f [Renaming] Remove RenameClassRector::processCleanUpUse() as already covered on ClassRenamingPostRector (#3463)
2023-03-08 07:33:37 +00:00
Tomas Votruba
c086693921 Updated Rector to commit 1142c99af7380356e2d1c8e572fb6d19830db51f
1142c99af7 [PostRector][AutoImport] Move check duplicate use of rename class from UseAddingPostRector to ClassRenamingPostRector (#3462)
2023-03-07 13:36:57 +00:00
Tomas Votruba
b146658bb5 Updated Rector to commit f9900dd236001d117a7b3fdb9fcc2d0d5ec569bc
f9900dd236 [AutoImport][PostRector] Handle duplicated import on namespaced class on UseAddingPostRector (#3461)
2023-03-07 00:55:13 +00:00
Tomas Votruba
3cdd9d3ecb Updated Rector to commit b3da981d01f2caa1534033e208a6131c9e61b9c3
b3da981d01 [Renaming] Keep unused import unless configured ->removeUnusedImports() on RenameClassRector on no namespace (#3460)
2023-03-06 20:21:39 +00:00
Tomas Votruba
5059435ef4 Updated Rector to commit b3da981d01f2caa1534033e208a6131c9e61b9c3
b3da981d01 [Renaming] Keep unused import unless configured ->removeUnusedImports() on RenameClassRector on no namespace (#3460)
2023-03-06 12:01:42 +00:00
Tomas Votruba
1cee8cc5d6 Rector 0.15.21 2023-03-06 11:44:29 +00:00
Tomas Votruba
3a55fbcd59 Updated Rector to commit 0433671480db4a41267eddcab741ba1739b58f1f
0433671480 typo
2023-03-06 11:44:19 +00:00
Tomas Votruba
9a50d02173 Updated Rector to commit d8dae934146cb5b99c6bd9eba340aa1863dce08c
d8dae93414 styling
2023-03-06 11:34:27 +00:00
Tomas Votruba
7a5d9d8a62 Updated Rector to commit 6091bdd821a72aa9df52363d944b003ec2fbaf1d
6091bdd821 [Printer] Avoid undefined index 0 on printing FileWithoutNamespace (#3459)
2023-03-05 23:49:34 +00:00
Tomas Votruba
16c8379cdf Updated Rector to commit ee55387e6a9171be6dfa446323eac57d247f7c45
ee55387e6a [e2e] Update nikic/php-parser ^4.15.4 to fix commented alternative if elseif syntax (#3458)
2023-03-05 20:13:41 +00:00
Tomas Votruba
b1ccc29dac Updated Rector to commit 00b6703cdc1c7dde6a568b1121fb7ba5c2dc06a7
00b6703cdc make the link clickable (#3457)
2023-03-05 20:07:02 +00:00
Tomas Votruba
c3c4fb3825 Rector 0.15.20 2023-03-05 11:25:23 +00:00
Tomas Votruba
2f750e7ff5 Updated Rector to commit bf6fdc70b4b903a27367926d189400d279dcb411
bf6fdc70b4 [CodingStyle] Use ExprAnalyzer::isDynamicExpr() to detect dynamic value case cond on BinarySwitchToIfElseRector (#3456)
2023-03-04 10:17:04 +00:00
Tomas Votruba
6fea23a820 Updated Rector to commit d9dc05621793de2fa23815b73e8db94c8f56b30d
d9dc056217 [Core] Remove RenamedClassesSourceLocator (#3454)
2023-03-04 09:04:54 +00:00
Tomas Votruba
57f48de22e Updated Rector to commit ed16cab5a2fa6982539e06ad70ac9c119c7dc346
ed16cab5a2 [Php80] Add typed property Closure support on ClassPropertyAssignToConstructorPromotionRector (#3453)
2023-03-04 08:55:37 +00:00
Tomas Votruba
b66a82808b Updated Rector to commit d9dc05621793de2fa23815b73e8db94c8f56b30d
d9dc056217 [Core] Remove RenamedClassesSourceLocator (#3454)
2023-03-04 08:55:31 +00:00
Tomas Votruba
4077ceef46 Updated Rector to commit 64a96e39ebbb3b3c00cb2c1f23addc4017388845
64a96e39eb [CodingStyle] Skip case not constant value on BinarySwitchToIfElseRector (#3452)
2023-03-04 08:53:24 +00:00
Tomas Votruba
2ddddb4e1a Updated Rector to commit c2a6d2217395ef9f6ba9a46188a62b97f2c4b250
c2a6d22173 [Core] Improve performance of ContextAnalyser: use findFirst instead of find all (#3449)
2023-03-04 08:52:32 +00:00
Tomas Votruba
b3c8106e73 Updated Rector to commit adfc65ab9500d1a6066bcb05944dd9c5e7c4c7d1
adfc65ab95 [Core] Use is_dir() instead of ! is_file() on FileAndDirectoryFilter::filterDirectories() (#3451)
2023-03-04 08:52:18 +00:00
Tomas Votruba
3280541fc8 Updated Rector to commit 9af763f23d4f12db2b18f0aa23afe08b082cb5f0
9af763f23d [Core] Improve performance of InlineHTMLAnalyzer: use findFirst instead of find all (#3448)
2023-03-04 08:51:54 +00:00
Tomas Votruba
bc4d62886b Updated Rector to commit b2e90e8df6609979f068858c5912aba7e2d1ede3
b2e90e8df6 [DeadCode] Skip assign inside if cond on RemoveAlwaysTrueIfConditionRector (#3447)
2023-03-04 08:51:42 +00:00
Tomas Votruba
9d9213d70c Updated Rector to commit 658e48f31fcb26a0e56740a49a994dbab3c1e6b5
658e48f31f Handle ->getDefaultValueExpression() return null (#3446)
2023-03-03 10:07:09 +00:00
Tomas Votruba
f2707dea96 Updated Rector to commit c9a621de856eac0be037169c3c07c1b279b3cc9f
c9a621de85 [Privatization] Remove ReplaceStringWithClassConstantRector as rather dynamic and can lead to unexpected results (#3443)
2023-03-03 03:15:36 +00:00
Tomas Votruba
8167a183dc Updated Rector to commit f56a0532c244b1585c66d3f1448e9be9f6833b41
f56a0532c2 Alternative Rector workflow on check repo before steps run (#3440)
2023-03-02 18:32:46 +00:00
Tomas Votruba
867e9441ef Updated Rector to commit efc969e6411704d02e004045cb8b1da5d263970c
efc969e641 Improve setup-ci command with helper links and allow override (#3438)
2023-03-02 15:27:05 +00:00
Tomas Votruba
0e8b799327 Updated Rector to commit a7d45e469a134f8671749aaf4a9a5ea797394e3a
a7d45e469a [Php80] Skip array append different keys in cases on ChangeSwitchToMatchRector (#3437)
2023-03-02 12:25:38 +00:00
Tomas Votruba
5104869465 Updated Rector to commit 4e625d0b8e545bf8fc143f5c9a18e6295ecc3989
4e625d0b8e [CodeQuality] Add concat support on ReturnTypeFromStrictScalarReturnExprRector to be string (#3435)
2023-03-02 12:17:17 +00:00
Tomas Votruba
52181ff8c7 Updated Rector to commit 10f38ea6718148f80bc24cd810a016e1a037691d
10f38ea671 add symfony/process
2023-03-02 01:50:45 +00:00
Tomas Votruba
9d8b966f01 Updated Rector to commit 1c231db5520a71dbaec34574fdafe69bcb002ff3
1c231db552 [CodingStyle] Fix infinite loop on NewlineAfterStatementRector when parent attribute is different (#3434)
2023-03-02 00:22:02 +00:00
Tomas Votruba
da8b1801b0 Updated Rector to commit 4bd93ba93ddde14444c7635b77007ee523a760f3
4bd93ba93d Handle missing token on Rector CI workflow on forks (#3433)
2023-03-01 22:23:24 +00:00
Tomas Votruba
7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba
7a073d6432 Updated Rector to commit 5e78981c52c275786a67ca64a7b7104ef0d8775a
5e78981c52 [Php71] Set public constant on final constant on PublicConstantVisibilityRector (#3431)
2023-02-28 20:41:27 +00:00
Tomas Votruba
cf1958e570 Updated Rector to commit 2eac878f538ddd1e20346c14d402f7e93ee6033b
2eac878f53 [TypeDeclaration] Only apply false type on php 8.2+ configured on TypedPropertyFromAssignsRector (#3422)
2023-02-28 18:23:25 +00:00
Tomas Votruba
5901355568 Updated Rector to commit 96176848192e3214a7a311126925ffeb9912e2e5
9617684819 misc
2023-02-28 17:49:53 +00:00
Tomas Votruba
839f74669a Updated Rector to commit 6ee434a398acd9132daf5c18384fae315f96b553
6ee434a398 use default
2023-02-28 17:49:00 +00:00
Tomas Votruba
75a9f9ecc8 Updated Rector to commit af52640505b505f3932f20f867db6d9eedeba222
af52640505 Use  stefanzweifel/git-auto-commit-action on templates (#3427)Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2023-02-28 17:44:40 +00:00
Tomas Votruba
5de33b3e25 Updated Rector to commit 7b5f06dc26cd749de63e7d673735a0b44e0275f4
7b5f06dc26 [CI] Move from EndBug/add-and-commit to stefanzweifel/git-auto-commit-action (#3426)
2023-02-28 17:40:00 +00:00
Tomas Votruba
1441410773 Updated Rector to commit 2ae2430ceb73c3533dded760b0ddda9e5d68c61e
2ae2430ceb misc
2023-02-28 17:02:31 +00:00
Tomas Votruba
4714a9c55d Updated Rector to commit 8a0b8381d5435f9152e71e2dc437e604aebef9e2
8a0b8381d5 [DX] Add setup-ci command to ease integration to CI (#3425)
2023-02-28 17:00:04 +00:00
Tomas Votruba
b8fc1aed27 Updated Rector to commit 8ef705e16046c3e6a8b87f81ea466ebc6ae3faf1
8ef705e160 [e2e] Remove e2e/template-extends as no longer crash on latest phpstan (#3424)
2023-02-28 15:54:53 +00:00
Tomas Votruba
88cbdce92d Updated Rector to commit fe3c6ff324a814101fdc2f489980ceb9fa219322
fe3c6ff324 [Privatization] Fix crash on assign inside Arg on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3423)
2023-02-28 15:26:15 +00:00
Tomas Votruba
4861972121 Updated Rector to commit a85934ba03b62bf1c8f24d0a1e6d464866492d71
a85934ba03 DX: Add composer keywords (#3386)
2023-02-28 12:48:47 +00:00
Tomas Votruba
4b3a85382e Rector 0.15.19 2023-02-28 10:47:53 +00:00
Tomas Votruba
139ecb760e Updated Rector to commit 3c34abb42a46a7e1f49dbef49e72dc49850a5dd2
3c34abb42a Skip not natively typed property in AddParamTypeFromPropertyTypeRector (#3421)
2023-02-27 21:26:51 +00:00
Tomas Votruba
bc68a7b39c Updated Rector to commit 3c34abb42a46a7e1f49dbef49e72dc49850a5dd2
3c34abb42a Skip not natively typed property in AddParamTypeFromPropertyTypeRector (#3421)
2023-02-27 09:36:44 +00:00
Tomas Votruba
d72ba9e07b Updated Rector to commit 9cf87f6ac68f0386a27e2892d832ee113ffcc642
9cf87f6ac6 Skip nullable DateTimeInterface in RenamePropertyToMatchTypeRector (#3420)
2023-02-27 00:09:29 +00:00
Tomas Votruba
f44d4bbee3 Updated Rector to commit b7b3a1dc2ea5c141aa1c48e626af10a31f832b77
b7b3a1dc2e [CodeQuality] Handle deep comments merged on ShortenElseIfRector (#3419)
2023-02-26 19:44:22 +00:00
Tomas Votruba
1317535781 Updated Rector to commit 8d9ff0a35673fc8c4566b92f464ce36bbbe03ba4
8d9ff0a356 [Core][e2e] Handle space before content and space before open tag on deep content on PhpFileProcessor (#3418)
2023-02-26 18:36:59 +00:00
Tomas Votruba
ddf1288090 Updated Rector to commit a8731b5c07598bbd6480c8f081c0f20f0e2e217f
a8731b5c07 [e2e] Remove use-rector-configurator e2e tests (#3417)
2023-02-25 18:43:49 +00:00
Tomas Votruba
53c0e8d8c1 Updated Rector to commit 8b59452f8ce943b28600da64313c979748b749d3
8b59452f8c rename fixture (#3416)
2023-02-25 18:27:33 +00:00
Tomas Votruba
2822d142fb Updated Rector to commit ad4d11bdd28af115f8b6dd071c82666dcc3d8daa
ad4d11bdd2 Fixing random stop rules-tests with paratest (#3415)
2023-02-25 17:57:50 +00:00
Tomas Votruba
d785bbe2e0 Updated Rector to commit 6e31710cca5c1cc0dcc9c5e08de1a0d53281c84b
6e31710cca [e2e][core][Printer] Use more reliable FileDiff instead of empty ->getRectorWithLineChanges() on PhpFileProcessor (#3414)
2023-02-25 17:42:55 +00:00
Tomas Votruba
acd9d65c74 Updated Rector to commit f60aaa59539dfa31b03085ba0747a73b1815d23e
f60aaa5953 [Core] Handle space removed on no rules applied on PhpFileProcessor  (#3412)
2023-02-25 12:53:14 +00:00
Tomas Votruba
105747beb9 Updated Rector to commit 7a6531d32db4db72241628feb6f8257e2df3720e
7a6531d32d [Core][Printer] Re-use resolveNewStmts() from BetterStandardPrinter on FormatPerservingPrinter (#3411)
2023-02-25 02:42:36 +00:00
Tomas Votruba
949980905b Updated Rector to commit 2cca234e54b88d14b9017ec343b3a9804d90a348
2cca234e54 Remove PropertyFetchTypeAnalyzer and it's usages (#3410)
2023-02-24 15:35:18 +00:00
Tomas Votruba
1b65d11365 Updated Rector to commit 9c7da411e7a32b7adca8af2bc9640c3cf0029583
9c7da411e7 Revert file not changed detected to be printed by PhpParser (#3409)
2023-02-23 15:02:52 +00:00
Tomas Votruba
547b750176 Updated Rector to commit 61348a86a5a9f113e0bd7d40324b3a0eec6fcd7d
61348a86a5 [e2e][core] Do not print on execute without --dry-run when no change (#3407)
2023-02-23 13:52:00 +00:00
Tomas Votruba
db9dc03ef1 Updated Rector to commit 61348a86a5a9f113e0bd7d40324b3a0eec6fcd7d
61348a86a5 [e2e][core] Do not print on execute without --dry-run when no change (#3407)
2023-02-23 13:14:36 +00:00
Tomas Votruba
20cb65540b Updated Rector to commit a8983ad8685a442077ee716d258ecd2b502a2962
a8983ad868 Rename fixture on e2e test without .inc (#3406)
2023-02-23 11:35:10 +00:00
Tomas Votruba
b510b80cd1 Updated Rector to commit ec785119cb2a97e957bb576990efe3d09a94649b
ec785119cb [Core] Improve performance: do not compare after refactor and after post Rector stmts if  already true (#3405)
2023-02-23 10:47:05 +00:00
Tomas Votruba
3837758530 Updated Rector to commit ec785119cb2a97e957bb576990efe3d09a94649b
ec785119cb [Core] Improve performance: do not compare after refactor and after post Rector stmts if  already true (#3405)
2023-02-23 10:40:11 +00:00
Tomas Votruba
34705bb179 Updated Rector to commit bcc44fb1de64537d2249c2960ffc1a359fb31b41
bcc44fb1de Allow class vs function names on imports (#3404)
2023-02-23 10:33:44 +00:00
Tomas Votruba
baee5d9d4a Updated Rector to commit 48e97cb0e710d6b7d704d31a6e3c4320486e1ed4
48e97cb0e7 [Core][e2e] Do not reprint from PhpParser when no RectorWithLineChange or empty diff (#3403)
2023-02-23 10:31:39 +00:00
Tomas Votruba
bfb3b0cf14 Updated Rector to commit 4a583b6a777b38f14791374a8793f37ae024e6f9
4a583b6a77 [phpstan-extensions] Provide phpstan container to bootstrap file from extensions (#3401)
2023-02-23 09:42:39 +00:00
Tomas Votruba
3689432167 Updated Rector to commit b1b48bceab3cf56858ebe565a22bba74458a497f
b1b48bceab [DeadCode] Skip if cond use variable from @param doc on RemoveAlwaysTrueIfConditionRector (#3402)
2023-02-22 18:49:35 +00:00
Tomas Votruba
2c4708affb Rector 0.15.18 2023-02-22 12:06:55 +00:00
Tomas Votruba
9524f2ffb4 Updated Rector to commit 5e8ee3129dcb3e0e402aed139396f3ef887ad6ad
5e8ee3129d Fix: print non PHP file processors changes in parallel runs (#3384)
2023-02-22 11:08:06 +00:00
Tomas Votruba
5d735c2311 Updated Rector to commit b2d6fa6ee64096cb358f8e29c490386989b4cfb0
b2d6fa6ee6 Revert recursive check on always array param on phpstan 1.10 on AddMethodCallBasedStrictParamTypeRector (#3399)
2023-02-22 01:54:59 +00:00
Tomas Votruba
908a3c39d3 Updated Rector to commit 648a2f5ca994605a85e8f10279936a864eefc09c
648a2f5ca9 Fix BleedingEdgeIncludePurifier to use random value on temporary file to avoid crash (#3396)
2023-02-21 17:09:39 +00:00
Tomas Votruba
cf3b24e388 Updated Rector to commit f9f4217a6d0cf0a13f17af52a4c4f52e246fbe5b
f9f4217a6d [e2e] [printer] Fix short open tag mixed php+html cause surplus <?php  (#3395)
2023-02-21 11:29:31 +00:00
Tomas Votruba
d7f9660bce Updated Rector to commit f9f4217a6d0cf0a13f17af52a4c4f52e246fbe5b
f9f4217a6d [e2e] [printer] Fix short open tag mixed php+html cause surplus <?php  (#3395)
2023-02-21 09:58:59 +00:00
Tomas Votruba
88aaa17af1 Updated Rector to commit 38372f25c3171a2d12c1bc1d8194610bc5d88327
38372f25c3 [Php56][Php70] Handle infinite loop on AddDefaultValueForUndefinedVariableRector+IfToSpaceshipRector (#3394)
2023-02-20 16:55:22 +00:00
Tomas Votruba
f913db6069 Updated Rector to commit 62d8685ce5b653a71014231d6a7dbf6934c30e60
62d8685ce5 Reuse anonymous class detection via ClassAnalyzer on PHPStanNodeScopeResolver (#3393)
2023-02-19 17:53:18 +00:00
Tomas Votruba
c97a6c91a3 Updated Rector to commit c65e60f70b628fd0602a9107189a1e9b6f0d3adf
c65e60f70b [Php56] Skip after infinite loop on AddDefaultValueForUndefinedVariableRector (#3390)
2023-02-19 14:50:05 +00:00
Tomas Votruba
17ffb97ef9 Updated Rector to commit bf7648c317c5f12bc2964de223b494dbc73b79a4
bf7648c317 improve excpeiton message
2023-02-19 14:31:54 +00:00
Tomas Votruba
44595ed746 Updated Rector to commit 937bf3e28b7868d79c4679d8e1e03cfb2e366a42
937bf3e28b [Transform] Add MethodCallToFuncCallRector (#3391)
2023-02-19 13:39:22 +00:00
Tomas Votruba
7f6ee79741 Rector 0.15.17 2023-02-17 20:34:07 +00:00
Tomas Votruba
2a475d5b03 Updated Rector to commit 9c6f41e6c0b943912ca1fd2b6a289106b556efbe
9c6f41e6c0 Fix external packages bleeding edge includes (#3389)
2023-02-17 19:53:09 +00:00
Tomas Votruba
d17680f2a5 Updated Rector to commit d8aa22b6713269ddafa80679777b3de9a4f456dd
d8aa22b671 [Printer][EarlyReturn] Enable InlineHTML on RemoveAlwaysElseRector (#3387)
2023-02-16 20:39:52 +00:00
Tomas Votruba
def6b091b1 Updated Rector to commit 5db390cb7b67d3537acc34d3eabb04de1ef4b35a
5db390cb7b [Php81] Handle null defined in variable first on NullToStrictStringFuncCallArgRector (#3385)
2023-02-16 08:42:29 +00:00
Tomas Votruba
9db8a3ec2f Updated Rector to commit 5db390cb7b67d3537acc34d3eabb04de1ef4b35a
5db390cb7b [Php81] Handle null defined in variable first on NullToStrictStringFuncCallArgRector (#3385)
2023-02-15 15:21:14 +00:00
Tomas Votruba
ab02d967b9 Updated Rector to commit 24a976b881b31b643138f24fc089ad8f77898689
24a976b881 [Printer] Ensure disable flag isRequireReprintInlineHTML on change file on MixPhpHtmlDecorator (#3383)
2023-02-15 12:36:22 +00:00
Tomas Votruba
86f1745c0a Updated Rector to commit a9e4d4b54b556f23e51f6bab81e1d867b185d010
a9e4d4b54b [CodeQuality][Printer] Handle mix php+html on TernaryFalseExpressionToIfRector (#3382)
2023-02-15 12:10:30 +00:00
Tomas Votruba
826539a991 Rector 0.15.16 2023-02-14 22:22:09 +00:00
Tomas Votruba
9805e05484 Rector 0.15.15 2023-02-14 21:45:03 +00:00
Tomas Votruba
e16bff2256 Rector 0.15.15 2023-02-14 20:12:02 +00:00
Tomas Votruba
3cf283e9a5 Rector 0.15.14 2023-02-14 19:21:17 +00:00
Tomas Votruba
28b649cb75 Updated Rector to commit f6d2041d0dec98b36d3ef45dcf8861a06bf3ef01
f6d2041d0d Fix test on RenameClassRector (#3381)
2023-02-14 16:27:41 +00:00
Tomas Votruba
c46fbe6ac2 Updated Rector to commit 842106a8470a9a356c9014151da2dbb899f86edb
842106a847 remove doc rename, probably multirun cache issue, works well standalone
2023-02-14 15:47:46 +00:00
Tomas Votruba
bb73357927 Updated Rector to commit 48228edf4647336d860ab24af7d4c62ea06c75a1
48228edf46 [config] include bootstrap files of extensions, to let rector know about types as well (#3380)
2023-02-14 15:08:14 +00:00
Tomas Votruba
fc230fdbc6 Updated Rector to commit dffddb244ffe016e94446f00a1ac61daac900ca6
dffddb244f Fix grammar in user-facing exception (#3379)
2023-02-14 14:21:08 +00:00
Tomas Votruba
ebd356eff2 Updated Rector to commit dffddb244ffe016e94446f00a1ac61daac900ca6
dffddb244f Fix grammar in user-facing exception (#3379)
2023-02-14 13:44:15 +00:00
Tomas Votruba
2dc52bcb24 Updated Rector to commit 61db165a8fc8a52935610500826b11e87c4cc33d
61db165a8f [TypeMapper] Use Identifier instead of Name on bool and null (#3378)
2023-02-14 12:16:55 +00:00
Tomas Votruba
90ca96064c Updated Rector to commit 56e1633c826c009e643873ca8461ea45d0fff217
56e1633c82 [TypeMapper] Use Identifier instead of Name on ObjectWithoutClassType (#3377)
2023-02-14 11:52:01 +00:00
Tomas Votruba
17071f1320 Updated Rector to commit dbaf0da38ac23091d39d4df71749da474e8df8ac
dbaf0da38a [TypeMapper] Use Identifier instead of Name on non-object types (#3375)
2023-02-13 18:21:59 +00:00
Tomas Votruba
0888a196e1 Updated Rector to commit dbaf0da38ac23091d39d4df71749da474e8df8ac
dbaf0da38a [TypeMapper] Use Identifier instead of Name on non-object types (#3375)
2023-02-13 16:16:52 +00:00
Tomas Votruba
e946e57476 Updated Rector to commit dbaf0da38ac23091d39d4df71749da474e8df8ac
dbaf0da38a [TypeMapper] Use Identifier instead of Name on non-object types (#3375)
2023-02-13 14:43:04 +00:00
Tomas Votruba
51f97eb7a9 Updated Rector to commit 7f9704010043e95a107d2a5fd5112fcfc2c2990b
7f97040100 [Php80][AutoImport] Do not import iterable on AutoImport enabled on UnionTypesRector (#3374)
2023-02-13 09:45:26 +00:00
Tomas Votruba
535ff0b0ef Updated Rector to commit 91ddd680c78eacc11006126398d64c4b97d38694
91ddd680c7 [TypeDeclaration] Remove unused intersection docblock on nullable intersection on TypedPropertyFromAssignsRector (#3373)
2023-02-13 01:08:43 +00:00
Tomas Votruba
7e939b3a17 Updated Rector to commit 91ddd680c78eacc11006126398d64c4b97d38694
91ddd680c7 [TypeDeclaration] Remove unused intersection docblock on nullable intersection on TypedPropertyFromAssignsRector (#3373)
2023-02-12 18:36:15 +00:00
Tomas Votruba
1044a9f5fe Updated Rector to commit db4ec0218f0ad9670790d5725c98bbb34120a97e
db4ec0218f [TypeDeclaration] Handle nullable intersection on TypedPropertyFromAssignsRector (#3372)
2023-02-12 17:34:35 +00:00
Tomas Votruba
5b5530d0ab Updated Rector to commit 67fd1651d647fca53597dbd6afe795ffe0ea75ca
67fd1651d6 [Php72] Handle crash on variable as operator on CreateFunctionToAnonymousFunctionRector (#3370)
2023-02-11 17:57:17 +00:00
Tomas Votruba
90d627a739 Updated Rector to commit 75149b2fdba0ce29e899e6610db8a703f3d30090
75149b2fdb [Renaming] Skip rename as Namespace_ name on RenameClassRector (#3371)
2023-02-11 17:56:10 +00:00
Tomas Votruba
baa729956a Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-11 12:25:19 +00:00
Tomas Votruba
3483839cce Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-11 11:34:35 +00:00
Tomas Votruba
776fe1ae1e Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-10 12:02:22 +00:00
Tomas Votruba
9e70c63b46 Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-10 11:47:52 +00:00
Tomas Votruba
d5ab1e22cf Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-09 14:03:33 +00:00
Tomas Votruba
dd993a84a8 Updated Rector to commit beb6e9127c74b5844dc6165cd60cba9c7136a411
beb6e9127c Skip namespaced use no backslash on removeUnusedImports() (#3366)
2023-02-08 22:45:28 +00:00
Tomas Votruba
561809dcd2 Updated Rector to commit beb6e9127c74b5844dc6165cd60cba9c7136a411
beb6e9127c Skip namespaced use no backslash on removeUnusedImports() (#3366)
2023-02-08 17:54:26 +00:00
Tomas Votruba
13aa217ffa Updated Rector to commit 208d52e2a160e8563ef94e2afc53239f8ecf55cf
208d52e2a1 [CodeQuality] Remove DoWhileBreakFalseToIfElseRector, rather manual static spot and refactoring (#3367)
2023-02-08 17:44:29 +00:00
Tomas Votruba
637250b084 Updated Rector to commit 9807d95c6b83a852c60d103e148cca123fd7ca01
9807d95c6b Skip namespaced use on removeUnusedImports() feature (#3365)
2023-02-08 17:11:31 +00:00
Tomas Votruba
182c2e0346 Updated Rector to commit d762bcedae5f4b8472dd70532566755b83701e88
d762bcedae Apply remove unused imports on the rest of RenameClassRector test fixtures (#3364)
2023-02-08 16:03:21 +00:00
Tomas Votruba
a8167497a7 Updated Rector to commit d762bcedae5f4b8472dd70532566755b83701e88
d762bcedae Apply remove unused imports on the rest of RenameClassRector test fixtures (#3364)
2023-02-08 15:52:48 +00:00
Tomas Votruba
9463a3bf8f Updated Rector to commit b9fef0f123d379125f7d946c49959c292feea723
b9fef0f123 Add unused import remover to cleanup use imports after changes (#3358)
2023-02-08 15:30:12 +00:00
Tomas Votruba
99c36383bb Updated Rector to commit 638a0ad9723a505b4908ed6b6534027bfd4dc5f2
638a0ad972 Remove unused RectorServiceConfigurator, use RectorConfig instead (#3363)
2023-02-08 14:55:14 +00:00
Tomas Votruba
37a3402479 Updated Rector to commit 6e5b0fd73cb89d2c139312f815ebd84e0d5c5647
6e5b0fd73c Update using paratest 7.0.4 to support phpunit 10.0.6 (#3362)
2023-02-08 11:01:46 +00:00
Tomas Votruba
f0b34d4760 Updated Rector to commit 5fc8c1a0539ba0f4ff29ed90f29633d4414e3ff6
5fc8c1a053 Replace ParametersAcceptorSelector::selectSingle() with ParametersAcceptorSelectorVariantsWrapper::select() when possible (#3361)
2023-02-08 10:25:24 +00:00
Tomas Votruba
73d7bba3b0 Updated Rector to commit a3bc2dcf8045157aafb20645b9e3cf49fa0542fb
a3bc2dcf80 [TypeDeclaration] Handle crash Multiple variants - use selectFromArgs() on ReturnAnnotationIncorrectNullableRector (#3359)
2023-02-08 09:19:48 +00:00
Tomas Votruba
3b73a69c61 Updated Rector to commit b999639103204532273571a43e9a9d1b19ea4ff2
b999639103 Added RenameClassNonPhpRector dependency to ClassRenamingPostRector (#3360)
2023-02-08 09:16:54 +00:00
Tomas Votruba
63b8be39f7 Updated Rector to commit 7f1f57acc358e4c7724b146f3a9d976bae4cb0c9
7f1f57acc3 remove pointless docblock from data providers
2023-02-07 23:09:03 +00:00
Tomas Votruba
cbcca1762d Updated Rector to commit dc4bb542e9e497dfe1bb6663e6568bfee0d625a6
dc4bb542e9 cleanup phpstan errors
2023-02-07 23:04:39 +00:00
Tomas Votruba
3eae173041 Updated Rector to commit e63368496d15c462b24731b528aba64526200657
e63368496d misc
2023-02-07 23:03:38 +00:00
Tomas Votruba
6481c8dccc Updated Rector to commit 5f4edd9230355cadc311ba8e8954fb9ae5bdc849
5f4edd9230 Remove NonVariableToVariableOnFunctionCallRector, should be handled manually as might need attention (#3357)
2023-02-07 22:56:24 +00:00
Tomas Votruba
0a33500839 Updated Rector to commit 651e283c439ef593c6609ccc2623e11142544f4f
651e283c43 The php-parser 5.0 is far away from release, no need to include it for now (#3355)
2023-02-07 17:02:42 +00:00
Tomas Votruba
b971f67811 Updated Rector to commit 51fcdc2639267a875c3d5c1a985800104e984ead
51fcdc2639 [Cache] Replace Strings::webalize() with sha1_file() from resolved path on ChangedFilesDetector (#3356)
2023-02-07 16:56:38 +00:00
Tomas Votruba
1f4ea6f9b2 Updated Rector to commit 7f873f0311679c23feacabd3089c8185b9a93c74
7f873f0311 [DX] Add back node helper functions to ease debugging (#3354)
2023-02-07 13:11:11 +00:00
Tomas Votruba
76b2c64b5f Updated Rector to commit e68c8d23cbbdb9dbfef66133af6bb4f1857015ad
e68c8d23cb Fix CallableTypeParameterNode and IdentifierTypeParameterNode crash (#3353)
2023-02-07 12:41:14 +00:00
Tomas Votruba
f397ad92ed Updated Rector to commit e68c8d23cbbdb9dbfef66133af6bb4f1857015ad
e68c8d23cb Fix CallableTypeParameterNode and IdentifierTypeParameterNode crash (#3353)
2023-02-07 12:32:23 +00:00
Tomas Votruba
1e09b81ddb Updated Rector to commit e68c8d23cbbdb9dbfef66133af6bb4f1857015ad
e68c8d23cb Fix CallableTypeParameterNode and IdentifierTypeParameterNode crash (#3353)
2023-02-07 12:26:09 +00:00
Tomas Votruba
05df336f8e Rector 0.15.13 2023-02-07 01:46:29 +00:00
Tomas Votruba
5cc4e62142 Updated Rector to commit 74bb7a0a7153e3b4423dd816da23c5de55875fc2
74bb7a0a71 Remove deprecated TYPE_DECLARATION_SET (#3352)
2023-02-07 00:42:51 +00:00
Tomas Votruba
baf4489760 Updated Rector to commit 4ef31e92b88053cf22ca1f379fc92ecc3d45f371
4ef31e92b8 Remove deprecated TemplateResolverInterface, RectorServiceConfigurator (#3351)
2023-02-06 19:28:33 +00:00
Tomas Votruba
f923fd0998 Updated Rector to commit 43dd2efc5d663bc16327911fe31c6f6ecf60e753
43dd2efc5d Remove deprecated ReturnTypeDeclarationRector, TypedPropertyRector, ParamTypeDeclarationRector rules (#3350)
2023-02-06 19:23:07 +00:00
Tomas Votruba
fc81ed9173 Updated Rector to commit 75d1dca2ef328d91cff2b642e79f1c442696d0a1
75d1dca2ef Don't get type from PropertyFetch for not natively typed properties (#3327)
2023-02-06 18:49:21 +00:00
Tomas Votruba
ab40a52407 Updated Rector to commit 75d1dca2ef328d91cff2b642e79f1c442696d0a1
75d1dca2ef Don't get type from PropertyFetch for not natively typed properties (#3327)
2023-02-06 17:12:10 +00:00
Tomas Votruba
e30c207496 Updated Rector to commit 913ccba104bde2c858fba76ae56f1c4d7c35b067
913ccba104 Fix duplicate fixture class take 4 (#3349)
2023-02-06 16:37:32 +00:00
Tomas Votruba
8266b2e01e Updated Rector to commit 2db6fc62f43a895e8ea3a7d1fa98c03dee299c92
2db6fc62f4 Fix duplicate fixture class take 3 (#3348)
2023-02-06 16:21:54 +00:00
Tomas Votruba
2d77391e5f Updated Rector to commit 8ddc3d94d4686f10d48c555aae69fe3219360e02
8ddc3d94d4 Do not run paratest on merge to main (#3347)
2023-02-06 16:05:18 +00:00
Tomas Votruba
f624d966b2 Updated Rector to commit 5c4a1212932dea9ca226abc55d480dbae2051562
5c4a121293 [CodeQuality] Skip has AllowDynamicProperties attribute on CompleteDynamicPropertiesRector (#3346)
2023-02-06 15:51:07 +00:00
Tomas Votruba
d2fb1c9b1f Updated Rector to commit 59622573c0c1b915570cd91924931771143bfbce
59622573c0 Fix duplicate class take 2 (#3345)
2023-02-06 14:57:01 +00:00
Tomas Votruba
5b904774c7 Updated Rector to commit ece1e1960dd00397ae00d2811c4356e157e02cce
ece1e1960d Upgrade ramsey/composer-install to v2 (#3344)
2023-02-06 14:52:09 +00:00
Tomas Votruba
6ee3993948 Updated Rector to commit ead3757690731bb9ee4d0686126077194e2280d0
ead3757690 Fix duplicate class fixtures (#3343)
2023-02-06 14:44:10 +00:00