1597 Commits

Author SHA1 Message Date
Tomas Votruba
71850def81 Updated Rector to commit 4eacb1ccc94f378eec0f3a08dbd8c90935d8d248
4eacb1ccc9 [automated] Re-Generate preload.php (#6268)
2024-09-01 00:37:22 +00:00
Tomas Votruba
2d115a2c54 Updated Rector to commit b2213fdb4431413ab027e9f83ffb97e0cb8d838f
b2213fdb44 [Refactor] Move bloated logic on NameImportingPostRector into ClassNameImportSkipper and NameImporter (#6267)
2024-08-31 11:36:27 +00:00
Tomas Votruba
334519dc5c Updated Rector to commit 07cfc2754d59ecfcd411e813d9d5fd48def7c035
07cfc2754d [Performance][AutoImport] Verify already use last name usage on long name on NameImportingPostRector (#6264)
2024-08-29 20:19:35 +00:00
Tomas Votruba
78795796cc Updated Rector to commit dc3850fead456e00bfe3fcbffb42beee70cc2893
dc3850fead [TypeDeclaration] Adds AddClosureParamTypeFromArgRector (#6258)
2024-08-27 10:29:31 +00:00
Tomas Votruba
b8c4f153f8 Updated Rector to commit db11aa556ff2cd07f2c63bbbe42441b273f99cda
db11aa556f [Performance] [TypeDeclaration] Reduce double traverse on SilentVoidResolver::hasExclusiveVoid() (#6255)
2024-08-26 16:41:19 +00:00
Tomas Votruba
e001fc4219 Updated Rector to commit 4f70e80c2d5f1febd01de2e7fa4a057880909dcb
4f70e80c2d Bump phpstan to 1.11.11 and pcre to 3.3.0 (#6241)
2024-08-20 13:23:49 +00:00
Tomas Votruba
59fedd58dd Updated Rector to commit 54bf4397654836bd28b5419768e739f6f372df05
54bf439765 [AutoImport] Do not add cast on valid Integer type on aliased Name Node on auto import enabled (#6237)
2024-08-16 19:59:49 +00:00
Tomas Votruba
39ddc0f654 Updated Rector to commit 174adf163cad4e588e5da961a7972c64a24d2615
174adf163c [AutoImport] Do not add cast on valid Integer type on Name Node on auto import enabled (#6236)
2024-08-16 17:14:24 +00:00
Tomas Votruba
c78b22e600 Updated Rector to commit 3ed476b9ab65958d85416e48a810b11dbaf4283a
3ed476b9ab [TypeDeclaration] Add AddReturnArrayDocblockBasedOnArrayMapRector (#6235)
2024-08-15 12:58:29 +00:00
Tomas Votruba
c5919c93d6 Updated Rector to commit 3ed476b9ab65958d85416e48a810b11dbaf4283a
3ed476b9ab [TypeDeclaration] Add AddReturnArrayDocblockBasedOnArrayMapRector (#6235)
2024-08-14 22:29:38 +00:00
Tomas Votruba
86cae8066f Updated Rector to commit fdd7f638a6e1f4d7ebf244f5827acdb687f14b3c
fdd7f638a6 [TypeDeclaration] Add AddParamArrayDocblockBasedOnCallableNativeFuncCallRector (#6233)
2024-08-14 18:24:06 +00:00
Tomas Votruba
67ca1f4e40 Updated Rector to commit e4ceb29d6e8fa02a4519ae35ab38eda2e622f7e1
e4ceb29d6e Adds the ScalarValueToConstFetchRector rule (#6195)
2024-08-12 21:02:44 +00:00
Tomas Votruba
cbfdee3c34 Updated Rector to commit 59585ae75aafa8c5e2666b047a84f13ab35fb59f
59585ae75a [Experiment] [NodeTypeResolver] Remove no longer needed deep Expr visitor ExprScopeFromStmtNodeVisitor (#6223)
2024-08-07 06:07:44 +00:00
Tomas Votruba
cfe590f0e1 Updated Rector to commit 147c96190e99909c71c2d920a83ae96cc9b3bd57
147c96190e Add known type casting to AnnotationToAttributeRector (#6217)
2024-08-06 12:34:27 +00:00
Tomas Votruba
97226e5e00 Updated Rector to commit aa90b800b54459bf2999eca94c101a6c0d51e4d8
aa90b800b5 [AutoImport] Add shared AddUseStatementGuard for PostRector that apply add use statement (#6212)
2024-08-03 08:26:49 +00:00
Tomas Votruba
7aeb17c570 Updated Rector to commit ad36316e98182d42006195f66b2f3942639b97b9
ad36316e98 Rectify and clean up skip config (#6205)
2024-08-01 07:43:24 +00:00
Tomas Votruba
0c6bf49523 Updated Rector to commit 97653a96da462aecddd02306557e811ccc38d6cb
97653a96da Skip only response inside controller class (#6204)
2024-07-31 14:46:41 +00:00
Tomas Votruba
278f98107f Updated Rector to commit de1d2737d6410eefbbdf516cafef0a2d4e760425
de1d2737d6 [Configuration] Allow define max level > possible level on LevelRulesResolver (#6203)
2024-07-30 13:14:21 +00:00
Tomas Votruba
8c20f42cfe Updated Rector to commit ed6b9124d64a80b10e6e81153353b8e59cd1d8e1
ed6b9124d6 Use instanceof check (#6200)
2024-07-30 10:04:00 +00:00
Tomas Votruba
e691d4e808 Updated Rector to commit 56f4768465eb6154456b8dba6d15fb99eace3bfe
56f4768465 [automated] Apply Coding Standard (#6197)
2024-07-28 10:14:30 +00:00
Tomas Votruba
aac69782fe Updated Rector to commit 3268b08b8629be3ad00d435c0ca8fe53447ae535
3268b08b86 fix issue #8755 about wrong systemError location (#6184)
2024-07-25 15:42:54 +00:00
Tomas Votruba
1b431b24ad Updated Rector to commit 3268b08b8629be3ad00d435c0ca8fe53447ae535
3268b08b86 fix issue #8755 about wrong systemError location (#6184)
2024-07-25 12:26:44 +00:00
Tomas Votruba
38b9cd6da5 Updated Rector to commit b95c4e8b061f0bf94a2608936edee7beaf228f18
b95c4e8b06 Fix scoper build due to composer/pcre conflict (#6186)
2024-07-25 11:04:48 +00:00
Tomas Votruba
8d7c7faf2f Updated Rector to commit 417b208b58da94040e01c5f9629ae33db472df78
417b208b58 [TypeDeclaration] Add TypedPropertyFromCreateMockAssignRector (#6177)
2024-07-23 17:11:54 +00:00
Tomas Votruba
2ec758b3bc Updated Rector to commit 5eb07c4285a12d1e6275fad54311b11930bcd818
5eb07c4285 [TypeDeclaration] Add ReturnTypeFromMockObjectRector (#6166)
2024-07-21 22:31:48 +00:00
Tomas Votruba
f6e296c7c2 Updated Rector to commit 18ac56ba991202762fae3deb9e7ab190b2d369e4
18ac56ba99 refactor: Move function first-class-callable to a standalone rule (#6131)
2024-07-08 13:48:56 +00:00
Tomas Votruba
242d297ba9 Updated Rector to commit e63e9a22fe148c02a55817fc432a769bc5914346
e63e9a22fe [Php71] Handle not identical to Float for empty string should compare to 0.0 on BinaryOpBetweenNumberAndStringRector (#6117)
2024-07-05 09:56:07 +00:00
Tomas Votruba
ccc200b8e4 Updated Rector to commit e63e9a22fe148c02a55817fc432a769bc5914346
e63e9a22fe [Php71] Handle not identical to Float for empty string should compare to 0.0 on BinaryOpBetweenNumberAndStringRector (#6117)
2024-07-05 09:18:34 +00:00
Tomas Votruba
b845779e98 Updated Rector to commit 3fe55534ea6c60a09d5ab1de5573f9b907a55bcf
3fe55534ea  [DeadCode] Skip fluent no return type on RemoveUnusedPrivateMethodRector take 2 (#6116)
2024-07-04 13:07:32 +00:00
Tomas Votruba
2720c63eec Updated Rector to commit 5fe7f4e12add95d0cb6d476ea9f4776492b38ed3
5fe7f4e12a Deprecate BoolReturnTypeFromStrictScalarReturnsRector, use BoolReturnTypeFromBooleanStrictReturnsRector instead (#6115)
2024-07-03 23:11:56 +00:00
Tomas Votruba
4aaedf51cb Updated Rector to commit 049f1efef6046aa7287fc129891abf3e310e4e6d
049f1efef6 Add - number support, deprecate ReturnTypeFromStrictScalarReturnExprRector functionality, already split (#6114)
2024-07-03 20:32:54 +00:00
Tomas Votruba
cd6dafbe86 Updated Rector to commit 2c1ae9bc46b3c8d31b1a45dcaac57c7d1522a8c1
2c1ae9bc46 Split StringReturnTypeFromStrictScalarReturnsRector into string, bool and numeric scalar + strict return type rules (#6113)
2024-07-03 20:14:45 +00:00
Tomas Votruba
3839c795dc Updated Rector to commit d8400c7cf1b75378603c7276c95393e2fd74c5b5
d8400c7cf1 [type-declarations] Add StringsReturnTypeFromStrictScalarReturnsRector to complete the string returns (#6111)
2024-07-03 16:42:04 +00:00
Tomas Votruba
1c29427ddb Updated Rector to commit 133c810f25c546682941c91717ce99f6787bfac7
133c810f25 [type-declarations] Add ReturnNullableTypeRector (#6110)
2024-07-03 15:34:41 +00:00
Tomas Votruba
f0ee411314 Updated Rector to commit fd5f15c7987257b5247bc05e36a932a4cccc29cc
fd5f15c798 [TypeDeclaration] Introducing ClosureReturnTypeRector to handle closure types separately (#6106)
2024-07-03 10:47:09 +00:00
Tomas Votruba
96ee33c4c8 Updated Rector to commit da745df35d8ab8be72f648c288a1c542ed666d5f
da745df35d [TypeDeclaration] handle explicit if else new on ReturnTypeFromReturnNewRector (#6104)
2024-07-02 23:06:05 +00:00
Tomas Votruba
d344c32402 Updated Rector to commit 710a8136ee8be9469853573952685e0d4c9c7873
710a8136ee Clean up return in __construct() in nullable checked fixture (#6101)
2024-07-02 06:41:47 +00:00
Tomas Votruba
78890ded1d Updated Rector to commit 3c2100b3a8d2372094135efa9c4d0433078337b5
3c2100b3a8 Union mapper cleanup (#6094)
2024-07-01 07:18:28 +00:00
Tomas Votruba
738f33982e Updated Rector to commit ef333502fb722ef471049b492a257781d02d0d62
ef333502fb Make NameScopeFactory simpler (#6092)
2024-07-01 06:16:16 +00:00
Tomas Votruba
9f439aaaf7 Updated Rector to commit 2d9ef9e6b876e6a5b7cdac01ca87d4b72ea3c895
2d9ef9e6b8 Remove UnionTypeCommonTypeNarrower as no longer needed, comparison handled by PHPStan (#6082)
2024-06-30 10:32:51 +00:00
Tomas Votruba
d03b346d78 Updated Rector to commit 1d6d468e8b6b6713d029fe5e6ffc05344cf08130
1d6d468e8b Remove TypeWithClassTypeSpecifierInterface as unused and solve in PHPStan (#6080)
2024-06-30 09:28:21 +00:00
Tomas Votruba
041b312f9b Updated Rector to commit d2b050471bb9e555ee0fe7765dc86bb73cf99f54
d2b050471b Misc cleanup (#6076)
2024-06-29 07:25:59 +00:00
Tomas Votruba
0ffcae08fc Updated Rector to commit 0cf02b0af6531ed472b7f744f2829b0ad1f3c485
0cf02b0af6 Split docblock name imports and name imports as different scope, skip for HTML nodes (#6071)
2024-06-28 20:06:53 +00:00
Tomas Votruba
2c2b95988f Updated Rector to commit 0796b9267ec313696e57a3cf5d9cd06a923bb62b
0796b9267e [TypeDeclaration] Add AddClosureReturnTypeFromStrictNativeCallRector (#6059)
2024-06-28 07:33:59 +00:00
Tomas Votruba
c950697298 Updated Rector to commit c1e0136582837d4322c76e4d7f5ea58a4cc1d68c
c1e0136582 [TypeDeclaration] Add AddClosureReturnTypeFromReturnCastRector (#6061)
2024-06-27 19:35:55 +00:00
Tomas Votruba
462ba01b9d Updated Rector to commit d6102594b3dd109267e5e5448206373cba8ad043
d6102594b3 [DX] Inform about deprecated rules in config (#6047)
2024-06-26 14:21:24 +00:00
Tomas Votruba
c22f5df110 Updated Rector to commit ca9d1f733f801a06ea23e786094ead5e9b5e4623
ca9d1f733f [TypeDeclaration] Add AddClosureReturnTypeFromStrictParamRector (#6044)
2024-06-26 13:34:02 +00:00
Tomas Votruba
5e279558fc Updated Rector to commit 5bb9cbafb58949e3e05c5c3a294d86df2c4902a0
5bb9cbafb5 Fix downgrade error: namespace Foreach should be Foreach_ (#6045)
2024-06-26 10:52:45 +00:00
Tomas Votruba
3dc474ce71 Updated Rector to commit dbcc9cb871623c76b7db7b31d1cb43f8268a3bec
dbcc9cb871 [TypeDeclaration] Add AddClosureNeverReturnTypeRector (#6039)
2024-06-26 09:08:01 +00:00
Tomas Votruba
8b4bf1857a Updated Rector to commit 7e79ae201c4de45815db5d43531e38babfb82786
7e79ae201c [Cleanup] Remove FormatPerservingPrinter as only delegate method, use BetterStandardPrinter directly (#6036)
2024-06-26 03:43:22 +00:00