Anto
c4cedab725
Do not transform callable|null into typed property ( #4367 )
2020-10-07 11:23:26 +02:00
Tomas Votruba
8ae3868a57
[Restoration] Add RestoreFullyQualifiedNameRector ( #4336 )
...
* [Restoration] Add RestoreFullyQualifiedNameRector
* update docs
* use service aware test case for PHPStan rules
* improve FullyQualifiedNameMatcher
* cs fixes
* add return doc resolution
* composer: bump to symfony 4.4/5.1
2020-10-01 19:45:29 +00:00
Leonardo Losoviz
4eacc84b22
Organize downgrades by PHP version ( #4147 )
...
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-08 13:12:38 +02:00
Tomas Votruba
a127bf16eb
revert [Experimental] Add safe_types option - #3535 ( #4120 )
2020-09-03 18:02:07 +00:00
Abdul Malik Ikhsan
9465173276
Fixes #3930 : TypedPropertyRector should not remove DocBlock comment when it specifies the values contained in an array ( #4102 )
2020-09-02 14:01:45 +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
Dmytro Naumenko
a15d2f8ccc
Fixed ClassMethodPropertyFetchManipulator to omit property assign by method call ( #4022 )
2020-08-25 18:17:43 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type ( #3973 )
2020-08-18 17:57:30 +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
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector ( #3860 )
...
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector
* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX
* [MagicDisclosure] Add in arg defluent
* rebase
2020-08-01 11:41:16 +00:00
TomasVotruba
fe72e003ed
use constants in configs
2020-07-30 13:53:53 +02:00
TomasVotruba
05f9bb7abc
add nullable for assign nodes by default [ closes #3685 ]
2020-07-26 17:13:35 +02:00
TomasVotruba
bc1a73f76d
rename duplicated short name to DonwgradeTypedPropertyRector
2020-07-26 17:13:35 +02:00
TomasVotruba
17f0a1df8e
[PHP 7.4] Add use imported FQN name
2020-07-24 20:55:31 +02:00
dobryy
13df3130ce
[PHP7.4] Invalid type with class keyword in Doctrine ORM property
2020-07-24 20:22:36 +02:00
Tomas Votruba
8079293989
Merge pull request #3683 from rectorphp/fix-php74-floats-to-ints
...
[Php74] Fix AddLiteralSeparatorToNumberRector if float number has zero after …
2020-07-10 13:32:20 +02:00
TomasVotruba
ffa21f6707
[PHP 7.4] Make RestoreDefaultNullToNullableTypePropertyRector skip nullable defined in ctor
2020-07-06 21:59:01 +02:00
Ludek Benedik
6632cc1baa
Fix AddLiteralSeparatorToNumberRector if float number has zero after decimal point separator (1000.0)
2020-07-06 15:20:33 +02:00
TomasVotruba
a8a6e7bcad
rename file to fileInfo
2020-06-30 01:45:05 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
a593afb017
[PHP 7.4] Add safe_types option
2020-06-16 22:34:52 +02:00
TomasVotruba
b7ef016f7d
[PHP 7.4] Make spready work only for integer keys
2020-06-15 15:35:54 +02:00
TomasVotruba
b98d937ffb
fix child blocked property type
2020-06-07 17:08:11 +02:00
TomasVotruba
ff655f3360
add inject property test case
2020-06-07 16:44:16 +02:00
TomasVotruba
9016ebcfd9
add test case for nullable array in typed properties
2020-06-07 16:15:12 +02:00
TomasVotruba
2781a713cf
fix skip non-class for nullable types
2020-06-07 13:47:37 +02:00
TomasVotruba
12e7e39b67
[PHP 7.4] Allow run typed properties on class-like types only
2020-06-07 13:08:18 +02:00
TomasVotruba
64215c43e6
[PHP 7.4] Prevent already used property name
2020-06-07 01:18:09 +02:00
TomasVotruba
53e9cc6c06
[PHP 7.4] Prevent child typed property override by abstract
2020-06-07 00:18:49 +02:00
TomasVotruba
212cbd209e
[PHP 7.4] Add conflicting short import typed property fix
2020-06-06 18:20:00 +02:00
TomasVotruba
790ab2fb06
allow ReservedFnFunctionRector on older PHP 7.3
2020-05-06 17:08:20 +02:00
Tomas Votruba
8492af2af1
[PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector ( #3064 )
...
* [PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector
* fixup! [Rector CI] Fixed Rector issues
* fixup! [Rector CI] Fixed CS issues
Co-authored-by: rector-bot <tomas@getrector.org>
2020-03-25 15:53:26 +01:00
TomasVotruba
f5d8804c20
improve PhpVersionFeature autocomplete by PHPStorm
2020-03-24 23:49:19 +01:00
TomasVotruba
ff6a3d3140
[PHP 7.4] Add RestoreDefaultNullToNullableTypePropertyRector
2020-03-24 23:45:15 +01:00
TomasVotruba
d608507f2e
rename PHP sets to comply with standard
2020-03-24 23:44:42 +01:00