Krystian Marcisz
d8dc81f4bd
[Symfony 5.2][Security] Migrate PUBLIC_ACCESS to the new class ( #4842 )
2020-12-10 12:10:05 +01:00
Tomas Votruba
2ea430b0ec
[PHP 8.0] Fix used variable rename in propperty promotion ( #4841 )
...
* [PHP 8.0] Add test case for used variable
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:40:38 +00:00
TomasVotruba
7db83da35d
[CI] check conflicting methods in tests
2020-12-09 23:35:48 +01:00
Tomas Votruba
d131d804d9
Bump min PHP version to 7.3 ( #4838 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:25:53 +01:00
Krystian Marcisz
fab46dd552
[Symfony 5.2][Mime] Rename Address::fromString() to Address::create() ( #4840 )
2020-12-09 21:38:57 +01:00
TomasVotruba
5ac0a2a511
skip void on param fixture update
2020-12-09 19:51:47 +01:00
Tomas Votruba
e157da77f9
[PHP 8.0] Skip void type in union ( #4835 )
2020-12-09 19:38:45 +01:00
Tomas Votruba
eac130e705
[PHP 8.0] Make Attribute silent keys explicit, with named args ( #4834 )
...
* decouple TagName class
* remove attribute aware from data provider tag value node, as unique class
* add RequiredTagValueNode
* make Attributes explicit, to avoid confusiong
2020-12-09 17:16:36 +00:00
Tomas Votruba
5e609f50fb
fix no use ( #4832 )
2020-12-09 17:09:26 +01:00
Tomas Votruba
c68fd43b65
Bump to Symplify 9 ( #4830 )
...
* composer: bump to Symplify 9
* fix cs
* update InputDetector to StaticInputDetector
* add missign symplify/ packages
* remove already included phpstan configs
* [CI] test lowest deps on PHP 7.3, as minimum for Symplify 9
* bump doctrine/inflector and sebastian/diff
* [CI] symplify PHP 7.3 testing
2020-12-09 15:41:23 +00:00
Abdul Malik Ikhsan
a8bcbe0aa7
[Downgrade PHP 8.0] Add DowngradeTrailingCommasInParamUseRector ( #4828 )
...
Co-authored-by: Krystian Marcisz <simivar@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 14:36:35 +01:00
Abdul Malik Ikhsan
8dad9a221f
[Downgrade PHP 7.4] Add DowngradeFreadFwriteFalsyToNegationRector ( #4825 )
2020-12-09 12:33:25 +01:00
Abdul Malik Ikhsan
143164504e
[CodeQuality] Add UnwrapSprintfOneArgumentRector ( #4827 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 12:29:01 +01:00
Abdul Malik Ikhsan
67ba16089a
[Downgrade PHP X.Y] Consistent usage of getPhpVersion() as constant - 1 in tests ( #4822 )
2020-12-09 12:28:15 +01:00
TomasVotruba
61828cdb67
refer Skip option
2020-12-08 15:40:04 +01:00
Leonardo Losoviz
e0b4d469cd
[Downgrade PHP 7.2] Parameter type widening ( #4818 )
2020-12-08 13:03:00 +01:00
Leonardo Losoviz
7c991a9898
[Downgrade PHP 7.0] Remove param and return types ( #4819 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-08 13:02:26 +01:00
Abdul Malik Ikhsan
a3add7d409
[Downgade PHP 7.1] Add DowngradeNegativeStringOffsetToStrlenRector ( #4823 )
...
* [Downgade PHP 7.1] Fixes #4197 Add DowngradeNegativeStringOffsetToStrlenRector
* implemented
* more fixture
* phpstan
* phpstan
* final touch: code sample
* register to downgrade-php71 set
2020-12-08 12:19:58 +01:00
Abdul Malik Ikhsan
beff093125
[Downgrade PHP 7.1] Add SymmetricArrayDestructuringToListRector ( #4821 )
...
* [Downgrade PHP 7.1] Fixes #4193 Add SymmetricArrayDestructuringToListRector
* use @requires PHP 7.1
* provide getPhpVersion() in test -a
* in foreach
* phpstan
* register to downgrade-php71 config set
2020-12-08 12:04:03 +01:00
Abdul Malik Ikhsan
7867fe927a
[AUTO_IMPORT_NAMES] Failing fixture for #4650 to skip already in use statement ( #4785 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-07 13:20:59 +01:00
Leonardo Losoviz
ec4096134a
Added test cases to validate bug #4397 ( #4815 )
2020-12-07 12:11:38 +01:00
Tomas Votruba
ca353017e2
[Utils] Add OnlyOneClassMethodRule ( #4814 )
...
* [Utils] Add OnlyOneClassMethodRule
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-07 00:48:01 +00:00
Krystian Marcisz
e945b5705f
[Downgrade][PHP 7.3] Add SetCookieOptionsArrayToArgumentsRector ( #4806 )
2020-12-06 13:14:21 +01:00
Markus Staab
f9de09ab3c
dont run jobs on forks, because gh-tokens are not available ( #4813 )
2020-12-06 18:08:19 +07:00
Abdul Malik Ikhsan
8a3b0d1ffd
[Downgrade PHP 8.0] Register DowngradeNullsafeToTernaryOperatorRector to downgrade php80 config set ( #4812 )
2020-12-06 11:49:49 +01:00
Markus Staab
e734d32e4c
dont run weekly jobs on forks, because gh-tokens are not available ( #4808 )
...
Try to fix a error which I get in GitHub Action every week
2020-12-06 11:47:46 +01:00
Abdul Malik Ikhsan
e25370bd21
[Downgrade PHP 8.0] Fixes #4154 Add DowngradeNullsafeToTernaryOperatorRector ( #4807 )
2020-12-06 11:43:38 +01:00
Abdul Malik Ikhsan
758aa2ceff
[Downgrade PHP 8.0] Register DowngradeClassOnObjectToGetClassRector to downgrade-php80 config set ( #4810 )
2020-12-06 11:35:56 +01:00
Abdul Malik Ikhsan
b649c6d7de
[Downgrade PHP 7.1] Register DowngradePipeToMultiCatchExceptionRector to downgrade-php71 config set ( #4809 )
2020-12-06 11:33:28 +01:00
Tomas Votruba
9792b8d0bd
keep description string as standard ( #4811 )
2020-12-06 11:30:46 +01:00
github-actions[bot]
26128bf0b3
[automated] Apply Coding Standard ( #4804 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-06 11:24:39 +01:00
github-actions[bot]
fb87c23e07
[automated] Re-Generate Nodes/Rectors Documentation ( #4803 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-06 11:19:50 +01:00
Tomas Votruba
db63a96397
[PHP 8.0] CI test fixes ( #4805 )
...
* [Downgrade PHP 8.0] Fix Union type
* run variable rename
* allow test
* fix regex
* allow run
* remove test dependency on DateTime changing api
* normalize
2020-12-06 10:19:17 +00:00
github-actions[bot]
6771bfd108
[automated] Re-Generate CHANGELOG.md ( #4802 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-06 01:31:07 +01:00
Tomas Votruba
bfd1953f97
move string downgrade types to object classes ( #4801 )
...
* move string downgrade types to object classes
* fix nullable type unwrap
* remove uneeded open tags from samples
* remove uneeded union type check
2020-12-06 00:27:00 +00:00
Tomas Votruba
3b22532794
[Downgrade] [PHP 8.0] Fix static type ( #4800 )
2020-12-06 01:05:21 +01:00
Tomas Votruba
dc61d2fecf
add docblock on downgrade by default ( #4799 )
...
* add docblock on downgrade by default
* update docs
* drop no docblock test
2020-12-05 22:33:27 +00:00
Tomas Votruba
18fdd3313a
[PHP 8.0] get_parent_class() cannot be called on non-existing classes anymore ( #4798 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 23:16:54 +01:00
Tomas Votruba
8bfb36d0b2
[Downgrade] [PHP 7.3] Downgrade trailing commas in function calls ( #4796 )
...
Co-authored-by: Tommy Quissens <tommy.quissens@storefront.be>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 22:40:10 +01:00
Krystian Marcisz
c85ee2df8d
[DX] Use MethodName const instead of string for __set_state ( #4797 )
2020-12-05 22:39:06 +01:00
Krystian Marcisz
41ab37165c
[PHP 8.0] Add FinalPrivateToPrivateVisibilityRector ( #4794 )
2020-12-05 22:33:30 +01:00
Krystian Marcisz
3af78f4c49
[PHP 8.0] Add RemoveParentCallWithoutParentRector to the set config ( #4795 )
2020-12-05 22:32:44 +01:00
TomasVotruba
25908c27f8
fix cs
2020-12-05 22:19:10 +01:00
Krystian Marcisz
49dceea41a
[PHP 8.0] Add SetStateToStaticRector ( #4792 )
2020-12-05 21:38:33 +01:00
Krystian Marcisz
69b63de4d3
[MysqlQueryMysqlErrorWithLinkRector] Remove already existing connection parameter from function call ( #4793 )
...
* Remove already existing connection parameter in function call
* CS Fixer
2020-12-05 20:26:46 +00:00
Krystian Marcisz
47a9a52ffd
[CodeQuality] Add DateTimeToDateTimeInterfaceRector ( #4791 )
...
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-05 21:21:22 +01:00
Tomas Votruba
7f1d304c9a
[Downgrade] [PHP 8.0] Add DowngradeMatchToSwitchRector ( #4788 )
2020-12-05 13:20:56 +00:00
Tomas Votruba
f672eace0e
[DX] Add init-recipe command to create recipe config in root ( #4789 )
...
* [DX] Add init-recipe command to initlaize recipe
* update docs
2020-12-05 13:20:13 +00:00
Tomas Votruba
e627304df9
[PHP 8.0] [Downgrade] Add DowngradeNonCapturingCatchesRector ( #4787 )
2020-12-05 11:50:31 +00:00
Tomas Votruba
1f56646989
PHPStan rule decouple to Symplify ( #4786 )
...
* use ForbiddenMethodCallOnTypeRule from symplify
* fixup! use ForbiddenMethodCallOnTypeRule from symplify
* merge CommentCombiner to CommentsMerger
2020-12-05 11:41:55 +00:00