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
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
a7705ed0a5
[Symplify 9] First update + switch to RuleDocGenerator ( #4616 )
...
* [composer] bump to Symplify 9
* [Symplify 9] Update phpstan rules
* bump to Symplify 9 BETA2
* update AbstractKernel from Tests to Testing namespace
* decoupling removing node trait
* remove fluent calls
* removing variadic
* [CodingStyle] Improve AnnotateThrowablesRector
* bump deps
* Make use of RuleDocGenerator
* first short
* [DocumentationGenerator] Drop deprecated package, RuleSetGenerator now handles it
* import namespace
* update docs
2020-11-16 17:50:38 +00:00
Tomas Votruba
0f2e6d407e
[DoctrineAnnotaitonGenerated] Update to doctrine/annotations 1.11 + fix static ( #4479 )
2020-10-25 14:43:05 +01:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" ( #4221 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +02:00
Tomas Votruba
6508aedd13
[Downgrade PHP 8.0] Add union types to doc types ( #4082 )
2020-09-08 12:00:38 +02:00
Tomas Votruba
7ac228c638
[CI] Add type-declaration set ( #4089 )
...
* [CI] Add type-declaration set
* [rector] [CI] Add type-declaration set
* [cs] [CI] Add type-declaration set
* skip nullable void
* add anonymous parent/interface support
* refactor MultiExceptionCatchRector to use Catch_ over integers
* type fixes
* fix unoin array type override
* remove unused test cases
* drop overcomplicated InlineValidationRulesToArrayDefinitionRector
* skip assign on var
* [rector] skip assign on var
* [cs] skip assign on var
* [rector] [cs] skip assign on var
* skip assign on var
* fixes
* [rector] fixes
* [cs] fixes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
41b679cb2a
[DX] Replacing arrays with objects ( #4008 )
...
* [phpstan] Add forbidden array destruct to prevent array mess
* use ArrayCallable value object
* add OpeningAndClosingSpace
* drop ConstructorInjectionToActionInjectionRector, antipattern
* use value objects
* [rector] use value objects
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-23 09:39:09 +00:00
Tomas Votruba
33d992497a
[Doctrine] Add constructor getRepository to service ( #3954 )
2020-08-13 01:04:23 +02:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types ( #3936 )
...
* phpstan: require iterable types
* add link on relative path and line
* fix missing class type
* typed array in Rector code + add data provide support resolver
* remove duplicated set
* drop unused yaml ecs config
* add out-of-the-box directory for 3rd party packages
* static fixes
* [rector] static fixes
* [cs] static fixes
* [rector] [cs] static fixes
* generic types
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
Tomas Votruba
c9bb13d7ae
[Architecture] fix repository property ( #3888 )
...
* [Architecture] Fix moving repository to constructor extra property
* [rector] [Architecture] Fix moving repository to constructor extra property
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 19:47:08 +00:00
TomasVotruba
fe72e003ed
use constants in configs
2020-07-30 13:53:53 +02:00
dobryy
f37cd4cac3
[Order] Apply rule
2020-07-26 15:11:41 +02:00
TomasVotruba
7ed4cb19c4
simplify config globs
2020-07-25 20:14:28 +02:00
TomasVotruba
c2c1066374
[rector] apply on rules
2020-07-19 20:52:42 +02:00
TomasVotruba
0944b75f7e
correct namespace in configs
2020-07-18 11:58:17 +02:00
TomasVotruba
0c816d60f8
[config] switch rules config from YAML to PHP
2020-07-16 12:48:54 +02:00
TomasVotruba
ee291d1fdc
use strings over ::class in type detection, as they ge tprifexed by phar builder
2020-07-12 16:38:04 +02:00
TomasVotruba
bdff80e972
improve docs code highlight
2020-07-07 12:15:52 +02:00
TomasVotruba
f1d54301a3
remove unused RectorContainerFactoryTest, also createFromSet() method
2020-07-02 15:19:07 +02:00
TomasVotruba
97571e6159
speedup DoctrineRepositoryAsService
2020-07-02 15:15:49 +02:00
TomasVotruba
52acc54005
merge PropertyNaming to one class
2020-07-01 23:42:23 +02:00
TomasVotruba
a8a6e7bcad
rename file to fileInfo
2020-06-30 01:45:05 +02:00
TomasVotruba
0cb82c2a6f
apply new Naming_
2020-06-30 00:57:38 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
c504062ec2
add typed property if on PHP 7.4
2020-06-24 15:09:50 +02:00
TomasVotruba
9922ba600b
make Rector description required for dumping documentation
2020-06-16 13:47:57 +02:00
TomasVotruba
b0bd524e53
apply constant decouple
2020-05-06 23:40:31 +02:00
TomasVotruba
25e142ec59
decopule AbstractWithFunctionToNetteUtilsStringsRector
2020-05-05 14:24:56 +02:00
TomasVotruba
1bf62ac1c7
[cs] sort private methods by call order and property by complexity
2020-04-26 02:57:47 +02:00
TomasVotruba
98b1277549
various suffix fixes
2020-04-23 22:31:58 +02:00
TomasVotruba
b3fde24ab1
[PHPUnit] Add AddProphecyTraitRector
2020-04-01 02:37:21 +02:00
TomasVotruba
11114def28
add remove* method
2020-03-19 13:56:33 +01:00
TomasVotruba
903483bf96
decouple ClassInsertManipulator
2020-02-29 22:10:06 +01:00
TomasVotruba
7bc1703859
improve class cognitive complexity
2020-02-29 19:14:40 +01:00
TomasVotruba
147b51b4c9
Fix prophecy mocking arg
2020-02-25 20:59:38 +01:00
TomasVotruba
c25db0b56d
apply
2020-02-19 00:14:44 +01:00
TomasVotruba
09cf6f8a4a
move core architecture to own set
2020-02-13 14:44:36 +01:00
TomasVotruba
3e5dd77bb6
move Rector-rule based packages from /packages to /rules
2020-02-11 13:41:37 +01:00