Commit Graph

25 Commits

Author SHA1 Message Date
Tomas Votruba
56651d0190 use PHPStan 1.7.12, with new phpdoc-parser to fix endline issue 2022-06-09 14:48:07 +02:00
Tomas Votruba
e7ec08fe91
[phpdoc-parser] Add new TokenIterator to preload, to fix removed endline bug (#2466) 2022-06-09 14:46:58 +02:00
Tomas Votruba
d4b7b48e6d
[scoped] Build with Scoper 0.17.2 (#2445)
* remove ScoperOption, not helpful

* try Scoper 0.17.2

* use dedicated repository

* expose helper functions

* add exclude ns

* expose normalizer

* try to fix import

* container ocnfigurator

* unpreifx file info for real

* expose container configuraotr

* deploy to original repository

* complete polyfill list

* expose rector running constant

* slash

* skip RuleDefinition explicitly
2022-06-07 11:23:53 +02:00
Tomas Votruba
975fdf113f
[DX] Add StmtsAwareInterface to catch node by type (#2269)
* add StmtsAwareInterface to catch node by type

* update build-preload

* use StmtsAwareInterface in InlineArrayReturnAssignRector
2022-05-08 20:50:37 +00:00
Tomas Votruba
25ed79188f
Bump Symplify package - use new location for console differ + value object inliner (#1841)
* inline ValueObjectInliner

* remove unsed patch
2022-02-20 12:56:50 +01:00
Tomas Votruba
a9290c8911
[automated] Re-Generate preload.php (#1468)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2021-12-12 00:19:43 +00:00
Tomas Votruba
5493b6dc13
[DX] Re-use configure() in docs + remove prefixing of ValueObjectInliner (#1410) 2021-12-06 21:59:45 +01:00
Tomas Votruba
2fbc1d4742
[automated] Re-Generate preload.php (#1393)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2021-12-05 00:19:49 +00:00
Tomas Votruba
3c28eb7cf4
[Scoped] Fix missing trigger_deprecatoin() in explicit preload (#1207) 2021-11-10 16:03:58 +00:00
Tomas Votruba
34f9d53fd0 remove removed ValueObjectException 2021-11-02 12:36:30 +01:00
Tomas Votruba
af0fc79863
Fix preload.php order to included firstly used classes first, to avoid missing parent bugs (#929)
* skip false positive phpstan

* [preload] fix order to go from first node usages

* improve build-preload.php

* [CI] test preload.php order

* [CI] add prelaod to test

* Add priority files to the top
2021-09-28 16:02:47 +00:00
Abdul Malik Ikhsan
17cfa9f376
Update to nikic/php-parser 4.13.0 (#904)
* Update to nikic/php-parser 4.13.0

* check Arg on PregMatchTypeCorrector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* check Aeg on NodeTransformer

* check arg on RegexPatternArgumentManipulator

* [ci-review] Rector Rectify

* check Arg on FuncCallManipulator

* check Arg on ClassMethodAssignManipulator

* check Arg on StringifyStrNeedlesRector

* [ci-review] Rector Rectify

* Arg check on CompactFuncCallAnalyzer

* Arg check on CompactFuncCallAnalyzer

* check Arg on CallableInMethodCallToVariableRector

* check Arg on CallableInMethodCallToVariableRector

* Arg check on BeConstructedWithAssignFactory

* Add ArgsAnalyzer to check Arg instance in in Args position

* Arg check on SubstrMatchAndRefactor

* Arg check on NewArgToMethodCallRector

* check Arg on ConsistentImplodeRector

* Arg check on DuringMethodCallFactory

* Arg check on CountOnNullRector

* Arg check on ExportToReflectionFunctionRector

* Arg check on ImplodeAnalyzer

* Arg check on WhileEachToForeachRector

* Arg check on DowngradeIsCountableRector

* Arg check on VariableNaming

* Arg check on ConditionResolver

* Arg check on DirNameFileConstantToDirConstantRector

* Arg check on NewFluentChainMethodCallNodeAnalyzer

* Arg check on MbStrrposEncodingArgumentPositionRector

* Arg check on UnwrapFutureCompatibleIfFunctionExistsRector

* Arg check on JsonArrayFactory

* Arg check on RemoveFuncCallRector

* Arg check on ArrayKeyExistsOnPropertyRector

* Arg check on FunctionExistsFunCallAnalyzer

* Arg check on SetTypeToCastRector

* Arg check on ReplaceEachAssignmentWithKeyCurrentRector

* Arg check on PregMatchTypeCorrector

* Arg check on SwapFuncCallArgumentsRector

* Arg check on FilterVarToAddSlashesRector

* Arg check on ClassOnObjectRector

* Arg check on ClassOnObjectRector

* Arg check on CallerParamMatcher

* Arg check on ArgumentFuncCallToMethodCallRector

* add ArgsAnalyzer::isArgsInstanceInArgsPositions() for multi check directly

* Arg check on ArraySpreadInsteadOfArrayMergeRector

* Arg check on GetDebugTypeRector

* Arg check on GetDebugTypeRector

* Arg check on StringifyDefineRector

* Arg check on DowngradeArrayKeyFirstLastRector

* Arg check on IsArrayAndDualCheckToAble

* Arg check on CreateFunctionToAnonymousFunctionRector

* Arg check on AddArrayDefaultToArrayPropertyRector

* Arg check on IsObjectOnIncompleteClassRector

* Arg check on ForToForeachRector

* Arg check on ClassMethodNodeRemover

* Arg check on CompactConverter

* Arg check on IsAWithStringWithThirdArgumentRector

* Arg check on CallUserFuncArrayToVariadicRector

* Arg check on MysqlPConnectToMysqliConnectRector

* Arg check on MysqlAssignToMysqliRector

* Arg check on InArrayAndArrayKeysToArrayKeyExistsRector

* Arg check on NonVariableToVariableOnFunctionCallRector

* Arg check on VersionCompareFuncCallToConstantRector

* fix test

* Arg check on StrEndsWithRector

* Arg check on TokenManipulator

* Arg check on StrStartsWithFactory

* Arg check on DowngradeIsIterableRector

* Arg check on DowngradeStripTagsCallWithArrayRector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* Arg check on ChangeDiffForHumansArgsRector

* Arg check on ThrowWithPreviousExceptionRector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* Arg check on StrposMatchAndRefactor

* Arg check on UseMessageVariableForSprintfInSymfonyStyleRector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix

* Arg check on PhpSpecClassToPHPUnitClassRector

* Arg check on CallTypesResolver

* Arg check on NonVariableToVariableOnFunctionCallRector

* Arg check on DispatchStringToObjectRector

* Arg check on GetClassToInstanceOfRector

* Arg check on StrncmpMatchAndRefactor

* Arg check on StrncmpMatchAndRefactor

* Arg check on ArraySpreadInsteadOfArrayMergeRector

* Arg check on ArrayKeysAndInArrayToArrayKeyExistsRector

* Arg check on DowngradeSessionStartArrayOptionsRector

* Arg check on CountArrayToEmptyArrayComparisonRector

* Arg check on DowngradeClosureFromCallableRector

* Arg check on EregToPregMatchRector

* Arg check on GetClassOnNullRector

* Arg check on use RemoveSoleValueSprintfRector

* Arg check on UnSpreadOperatorRector

* Arg check on DowngradeStrContainsRector

* [ci-review] Rector Rectify

* Arg check on ArrayMergeOfNonArraysToSimpleArrayRector

* Arg check on IntvalToTypeCastRector

* Arg check on RemoveUnusedVariableAssignRector

* Arg check on ConsistentPregDelimiterRector

* Arg check on CountManipulator

* Arg check on DowngradeDefineArrayConstantRector

* Arg check on RemoveReferenceFromCallRector

* Arg check on SimplifyInArrayValuesRector

* Arg check on SingleInArrayToCompareRector

* Arg check on SimplifyIfIssetToNullCoalescingRector

* Arg check on StrlenZeroToIdenticalEmptyStringRector

* [ci-review] Rector Rectify

* Add ComplexType check

* Arg check on UnwrapSprintfOneArgumentRector

* Arg check on CurrentAndParentClassMethodComparator

* Arg check on CompactToVariablesRector

* [ci-review] Rector Rectify

* ComplexType check

* Arg check on MockVariableCollector

* re-generate preload.php

* [ci-review] Rector Rectify

* fix phpstan ignore error

* Arg check on FormerNullableArgumentToScalarTypedRector

* ComplexType check on MakeTypedPropertyNullableIfCheckedRector

* Arg check on ArgumentRemoverRector

* using getArgs() on PhpSpecPromisesToPHPUnitAssertRector

* using getArgs() on args using in method call args

* Arg check on PhpSpecMocksToPHPUnitMocksRector

* Arg check on SetCookieRector

* Arg check on StringsAssertNakedRector

* Arg check on PregReplaceEModifierRector

* using getArgs() on multiple count() usage

* using getArgs() on args using in method call args

* using getArgs() on args using in method call args

* using getArgs() on args using in method call args

* Arg check on MysqlFuncCallToMysqliRector

* using getArgs() on args using in method call args

* using getArgs() on args using in method call args

* Arg check on DowngradeCovariantReturnTypeRector

* Arg check on SetCookieOptionsArrayToArgumentsRector

* using getArgs() on too complex check

* Arg check on DowngradeNegativeStringOffsetToStrlenRector

* ensure preload always used when file exists

* Arg check on SimplifyFuncGetArgsCountRector

* set back reportUnmatchedIgnoredErrors as different between local and github

* Arg check on ArgumentDefaultValueReplacer

* fix test of getArgs() on MysqlQueryMysqlErrorWithLinkRector

* Arg check on SymmetricArrayDestructuringToListRector

* Arg check on UseMessageVariableForSprintfInSymfonyStyleRector

* Arg check on ConsistentPregDelimiterRector

* Arg check on CallUserFuncToMethodCallRector

* Arg check on ArrayKeyExistsTernaryThenValueToCoalescingRector

* Arg check on SimplifyStrposLowerRector

* Arg check on CompactToVariablesRector

* Arg check on CompactToVariablesRector

* Arg check on ChangeArrayPushToArrayAssignRector

* Arg check on ChangeArrayPushToArrayAssignRector

* Arg check on CompactConverter

* final touch: Arg check on CallUserFuncWithArrowFunctionToInlineRector

* fix

Co-authored-by: GitHub Action <action@github.com>
2021-09-27 17:29:16 +02:00
Tomas Votruba
a19687ce9d
[automated] Re-Generate preload.php (#901)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2021-09-19 00:15:37 +00:00
Tomas Votruba
a10212419c
[automated] Re-Generate preload.php (#831)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2021-09-05 00:24:19 +00:00
Tomas Votruba
1ac0bf7dbe
[automated] Re-Generate preload.php (#618)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2021-08-08 00:14:14 +00:00
Abdul Malik Ikhsan
9d37638fce
[GHA] Add automate regenerate preload.php weekly PR (#588)
* [GHA] Add automate regenerate preload.php weekly PR

* cs fix after preload

* no need space
2021-08-04 09:28:17 +02:00
Tomas Votruba
083d68eb93
[PHP 8.1] Add FinalizePublicClassConstantRector + downgrade alternative (#490)
* bump to nikic/php-parser 4.12

* bump to stable typo3-rector

* [PHP 8.1] Add FinalizePublicClassConstantRector

* [DowngradePhp81] Add DowngradeFinalizePublicClassConstantRector

* ignore Comparator from downgrade in myclabs/enum

* add AccessoryNonEmptyStringTypeMapper

* [ci-review] Rector Rectify

* narrow non-empty string to string type

Co-authored-by: GitHub Action <action@github.com>
2021-07-22 23:34:25 +02:00
TomasVotruba
1ade2746f6 cleanup preload.php 2021-06-05 23:03:43 +02:00
TomasVotruba
055a9e3a05 prioritize ContainerConfigurator 2021-05-13 20:10:00 +01:00
TomasVotruba
20f9bb7cf5 refresh preload 2021-05-07 18:01:17 +02:00
TomasVotruba
28d894f226 do not preloda configs 2021-05-07 17:58:20 +02:00
TomasVotruba
dc30ace982 preload local symplify too 2021-05-07 17:53:02 +02:00
Tomas Votruba
21bf53f2ec
[CodeQuality] Add FuncGetArgsToVariadicParamRector (#6318) 2021-05-03 21:27:20 +00:00
TomasVotruba
ce81312d9d blind preload 2021-04-29 20:00:09 +02:00
TomasVotruba
f15648eb05 add preload in build 2021-04-29 19:55:03 +02:00