Tomas Votruba
0be8a9c2ca
[Naming] Fix const fetch missed class name bug ( #5189 )
...
* [Naming] Fix const fetch missed class name bug
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
0.9.9
2021-01-15 01:13:31 +01:00
Tomas Votruba
58d97b9853
[Naming] Fix Param type Promoted Rename ( #5188 )
...
* [Naming] Make RenameParamToMatchTypeRector skip promoted property
* [Naming] Add property rename to RenamePropertyToMatchTypeRector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
0.9.8
2021-01-14 22:44:07 +00:00
Abdul Malik Ikhsan
55ee86cb90
[Docker] Install libicu-dev to allow install intl ( #5186 )
...
* [Docker] Install libicu-dev to allow install intl
* phpstan
2021-01-14 17:56:23 +01:00
Kevin EMO
c1976251f8
[Typo] Fixed a typo in the README.md file ( #5187 )
...
:)
2021-01-14 17:55:53 +01:00
Abdul Malik Ikhsan
4d3ed9e1de
[Docker] Fixing configure - install - enable intl ( #5185 )
...
* [Docker] Fixing configure - install - enable intl
* no need enable, only configure and install
2021-01-14 14:11:37 +01:00
Henk Poley
e0b9c143a0
Issue #5180 - add intl extension ( #5184 )
...
https://github.com/rectorphp/rector/issues/5180#issuecomment-760100459
2021-01-14 12:31:34 +00:00
Tomas Votruba
1cd0e1004f
add missing astral package ( #5182 )
2021-01-14 12:03:13 +00:00
github-actions[bot]
fc9acd9c21
[automated] Re-Generate Nodes/Rectors Documentation ( #5178 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-14 11:10:33 +01:00
TomasVotruba
72d01fea03
[ci] move cs and doc check to once a week
2021-01-14 11:10:03 +01:00
Abdul Malik Ikhsan
8a739f2ce6
[DeadCode] Failing fixture remove unused variable assign in expr ( #5165 )
...
* [DeadCode] Failing fixture remove unused variable assign in expr
* Fix #5152
* fixture namespace fix-a
* cs fix
* ensure type of expr is one of FuncCall,MethodCall,StaticCall,NullsafeMethodCall,or New_
* fixture skip multi args
* phpstan
* skip in expr
2021-01-14 11:07:38 +01:00
Abdul Malik Ikhsan
09118247d3
[CodeQuality] Improve SimplifyDeMorganBinaryRector : skip not "or" operator ( #5177 )
...
* [CodeQuality] Improve SimplifyDeMorganBinaryRector : skip not "or" operator
* fixture
* cs fix
* clean up
2021-01-14 01:54:44 +01:00
Jan Kiesewetter
e09d2ab0ab
Clear apt and composer cache after installing ( #5173 )
2021-01-14 01:45:14 +01:00
bruce aldridge
21caa47d38
Add failing test fixture for EncapsedStringsToSprintfRector ( #5176 )
...
# Failing Test for EncapsedStringsToSprintfRector
Based on https://getrector.org/demo/197507f8-e9cb-4f9c-8aa1-b08702496253
2021-01-14 01:43:50 +01:00
Tomas Votruba
0f4da846a5
[SymfonyCodeQuality] Prevent route class override, add support for start with numbers ( #5172 )
0.9.7
2021-01-13 14:55:04 +00:00
Tomas Votruba
713915d1b2
Polishing composer rules ( #5170 )
...
* [Composer] Add check for existing compsore.json
* update composer package
* coding style
* various static fixes
2021-01-13 13:02:14 +00:00
Tomas Votruba
96e44124cc
[Composer] Add check for existing compsore.json ( #5168 )
2021-01-13 11:56:24 +00:00
Abdul Malik Ikhsan
fa1b904f36
[CodeQuality] Skip SimplifyDeMorganBinaryRector on negated greater or equal ( #5164 )
...
* [CodeQuality] Fixes #5153 Skip SimplifyDeMorganBinaryRector on negated greater or equal
* fixture
* fixture
* fixture class name fix
* add missing fixture namespace
2021-01-13 12:48:46 +01:00
Abdul Malik Ikhsan
40c54eb1f4
[PHPUnit] Migrate phpunit.xml configuration with --migrate-configuration ( #5166 )
...
* [PHPUnit] Migrate phpunit.xml configuration with --migrate-configuration
* 4 spaces and indent
2021-01-13 12:30:23 +01:00
Tomas Votruba
7d9fa07c72
import const name attribute ( #5158 )
...
* use config over manual creationg
* add attribute test
2021-01-13 01:44:48 +00:00
github-actions[bot]
19c47b9f1f
[automated] Re-Generate Nodes/Rectors Documentation ( #5162 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-13 02:25:45 +01:00
Michal Lulco
3840fb4135
Added usage of composer modifier for nette upgrade to 3.0 ( #5161 )
2021-01-13 00:23:45 +01:00
Michal Lulco
4bd4a4657b
Full upgrade of codebase including changes in composer.json ( #5074 )
...
* Composer changer
* Implemented ChangePackage, ChangePackageVersion and RemovePackage with tests
* Refactored composer processor
* Refaktoring
* Added missing tests
* Added void return type to test
* Changed namespaces and fixed CI tests
* Apply rector rules
* Moved new line to processor from modifier
* Use array copies in tests
* Added descriptions to all construct parameters and inheritDoc to modify methods
* Rewritten ComposerModifierTest to use AbstractKernelTestCase and ComposerModifier as service
* Split MovePackage to 2 classes
* Sort packages if it is set in config
* Rectified
* Rename class ChangePackage to ReplacePackage
* Split class AddPackage to AddPackageToRequire and AddPackageToRequireDev
* Added Version checker and moved modifier classes to separated folder
* Changed array to ComposerJson in modify methods
* Rectifying
* Removed unnecessary docs
* Temporary added fork of composer-json-manipulator
* Removed unused code and replaced InvalidArgumentException to assert
2021-01-12 22:50:42 +01:00
Abdul Malik Ikhsan
0ba497eb71
[DeadCode] Skip when $this->isOpenSourceProjectType() on RemoveUnusedPublicMethodRector ( #5155 )
...
* [DeadCode] Skip when $this->isOpenSourceProjectType() on RemoveUnusedPublicMethodRector
* add open source type test
2021-01-12 15:36:13 +01:00
Tomas Votruba
b604e1676c
[Privatization] Add ReplaceStringWithClassConstantRector ( #5156 )
...
* [Privatization] Add ReplaceStringWithClassConstantRector
* README: add to scoped
2021-01-12 13:41:47 +00:00
github-actions[bot]
f40d602d43
[automated] Re-Generate Nodes/Rectors Documentation ( #5150 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-12 12:52:10 +01:00
Abdul Malik Ikhsan
9b08d3a924
[DeadCode] Add RemoveUnusedPublicMethodRector ( #5151 )
...
* [DeadCode] [WIP] Fixes #3107 Add RemoveUnusedPublicMethodRector
* example
* add failing test
* basic
* use findCallsByClassMethod
* functional
* cs fix
* fix
* failing with place unused method later
* debug
* debug
* getting class name by method call
* checking method call name compare
* works
* check used outside class
* check used outside class
* check used outside class
* clean up
* move up method
* phpstan
* fixture for dependency injection
2021-01-12 12:43:13 +01:00
TomasVotruba
e71a107b1b
[SymfonyCodeQuality] Create value object in one step
2021-01-12 01:04:45 +01:00
Leonardo Losoviz
a57d55cd0a
[Downgrade PHP 7.4] Skip downgrading contravariant argument for __construct ( #5148 )
...
* Added (failing) test
* Implemented feature
2021-01-12 00:03:29 +01:00
Leonardo Losoviz
9f8f5e9562
[Downgrade PHP 7.4] Remove self return type ( #5146 )
...
* Added tests
* Map "self" type
* Implemented Rector
* Use className as param
* Fixed PHPStan
* Added rector to set
2021-01-11 23:14:54 +01:00
Tomas Votruba
1ae44512e9
[PHP 8.0] Add FalseableCountToZeroRector ( #5143 )
2021-01-11 21:19:55 +01:00
Tomas Votruba
6c11a254aa
[SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector ( #5140 )
...
* [SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector
* optimizations
2021-01-11 20:12:10 +00:00
Matthias Noback
73c2a2e28b
InferParamFromClassMethodReturnRector: Don't fail with empty array ( #5141 )
...
* Skip empty array
When inferring param from class method return, an empty array should be fine.
* Improve test fixture
2021-01-11 21:00:10 +01:00
Tomas Votruba
2d7b21f3cc
[PHP 8.0] Add new pgsql function names ( #5138 )
2021-01-11 12:00:34 +00:00
Abdul Malik Ikhsan
de09409152
[mysql-to-mysqli] Handle second parameter on mysqli_query swap for sql - conn variable ( #5130 )
...
Co-authored-by: Martin <admin@phpcode.eu>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-11 12:12:46 +01:00
Tomas Votruba
20588b78a0
[DeadCode] Remove right part of unused assign ( #5135 )
2021-01-10 19:13:28 +00:00
Tomas Votruba
8d66581b58
[CodingStyle] Skip on class-string string subtype ( #5133 )
...
* [CodingStyle] Skip on class-string string subtype
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-10 18:57:16 +00:00
Tomas Votruba
d1df8f76cd
drop PHPStanAttributeTypeSyncer, handled by external package ( #5131 )
2021-01-10 14:51:27 +01:00
Tomas Votruba
074298d35c
static fixes ( #5127 )
...
* static fixes
* fix remove class rule for tests
0.9.6
2021-01-10 11:01:40 +00:00
Abdul Malik Ikhsan
edcfe417a4
Another fix weekly code coverage action ( #5128 )
...
typo fix `secrets.GITHUB_TOKEN` -> `secrets.ACCESS_TOKEN`
2021-01-10 11:55:11 +01:00
Abdul Malik Ikhsan
6da34f9a35
Fix weekly code coverage github action ( #5126 )
...
it got error:
```
The workflow is not valid. .github/workflows/weekly_code_coverage.yaml (Line: 34, Col: 51): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITHUB_TOKEN
```
The `secrets` seems only needed for automatic PR.
2021-01-10 08:54:52 +01:00
TomasVotruba
1aa0cb4550
bump deps
2021-01-10 02:28:32 +01:00
TomasVotruba
859fd4f327
fix forgotten array
2021-01-09 16:07:53 +01:00
TomasVotruba
d59aa8dfd6
use array arguments on privates caller
2021-01-09 15:51:10 +01:00
TomasVotruba
6c740e6df0
remove unused class as file
2021-01-09 15:27:24 +01:00
Tomas Votruba
4756535d2b
[CodingStyle] Improve unspread array ( #5120 )
...
* decouple VendorFileDetector
* decouple SpreadVariablesCollector
* [CodingStyle] Improve UnSpreadOperatorRector to join argument to array
2021-01-09 14:08:02 +00:00
github-actions[bot]
f1d4a4a671
[automated] Re-Generate Nodes/Rectors Documentation ( #5118 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-09 12:16:22 +01:00
Tomas Votruba
7d441c1806
fix offset type ( #5119 )
...
* fix offset type
* skip ChangeGlobalVariablesToPropertiesRector if empty
2021-01-09 10:50:47 +00:00
Tomas Votruba
2cf2ee3f41
fix exclusion annotation for non-class rector descripton + simplify ( #5117 )
...
* fix exclusion annotation for non-class rector descripton + simplify
* add HasOffsetTypemapper
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-09 00:20:28 +00:00
Tomas Votruba
bc0113dbd7
use templates ( #5116 )
2021-01-08 23:30:33 +01:00
Tomas Votruba
bd62164c85
[DeadCode] Skip if the methods have api annotation ( #5115 )
...
* [DeadCode] Skip if the methods have api annotation
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-08 20:15:44 +01:00