Tomas Votruba
d27997197b
Static updates ( #4857 )
2020-12-11 18:25:42 +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
Tomas Votruba
2030badc19
[PHP 8.0] Add nette utils strings replace, static fixes ( #4741 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-01 14:52:24 +01:00
Tomas Votruba
080e5cbe00
use symplify/skipper ( #4689 )
2020-11-26 23:09:21 +01:00
Abdul Malik Ikhsan
a38debb672
[DX] Fixes #4205 Change phpversion from string to php constant int type ( #4679 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 16:32:49 +01: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
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node ( #4522 )
...
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node
* update DecoupleClassMethodToOwnClassRector
* [ci] add rebase jobp
* disable fail fast for unit tests
* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
bc41ba2b2e
phpstan cleanup ( #4509 )
...
* move tag objects to ValueObject namespace
* [ci] temporarily disable weird broken monorepo split, wait for move to github actoins
2020-10-29 23:06:26 +01:00
Abdul Malik Ikhsan
449801e1f3
Add regex uri to regex constant ( #4504 )
...
Co-authored-by: Jan Lohage <j2L4e@users.noreply.github.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 19:04:33 +01:00
Abdul Malik Ikhsan
9e0b632e4e
[CodeQualityStrict] Add CountArrayToEmptyArrayComparisonRector to CodeQualityStrict ( #4496 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-29 09:59:39 +01:00
Tomas Votruba
0f2e6d407e
[DoctrineAnnotaitonGenerated] Update to doctrine/annotations 1.11 + fix static ( #4479 )
2020-10-25 14:43:05 +01:00
Abdul Malik Ikhsan
be06b60eac
Typo Fix: Strings::endWith() should be Strings::endsWith() ( #4475 )
...
* Typo Fix: Strings::endWith() should be Strings::endsWith()
* [rector] Typo Fix: Strings::endWith() should be Strings::endsWith()
* [cs] Typo Fix: Strings::endWith() should be Strings::endsWith()
* phpstan
* [rector] phpstan
* [cs] phpstan
* cs fix
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-23 11:23:12 +02:00
Tomas Votruba
5988584736
[CodeQuality] Improve missing property type resolution for array dim fetch ( #4462 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 20:35:35 +02:00
Tomas Votruba
7aad4bbf2f
[PHPStan] Enable regex constant rule ( #4279 )
2020-09-23 11:16:40 +02:00
Tomas Votruba
52ccfc0527
[DX] move Nette FileSytem to SmartFileSystem DI ( #4262 )
...
* move Nette FileSytem to SmartFileSystem DI
* move Symfony FileSytem to SmartFileSystem
* [ci] run rector diretly, without composer wrap
2020-09-19 09:27:29 +00: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
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
f8b485305f
Add multiple annotation support on class ( #4064 )
...
* add test case for #3230
* position
* add support for multi doc annotations
* [rector] add support for multi doc annotations
* [cs] add support for multi doc annotations
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-29 23:12:20 +00:00
dobryy
21d0f01383
[DX] TemplateAnnotationToThisRenderRector fixture's namespace issue ( #3984 )
2020-08-20 13:56:06 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type ( #3973 )
2020-08-18 17:57:30 +02:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… ( #3889 )
...
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop
* [Order] Enable rule in CI
* [rector] [Order] Enable rule in CI
* [cs] [Order] Enable rule in CI
* [Order] Use constant for number of max attempts and throw exception when exceeded.
* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.
* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02: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
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
6a4792abf4
apply new naming rule
2020-07-19 23:36:10 +02:00
TomasVotruba
0944b75f7e
correct namespace in configs
2020-07-18 11:58:17 +02:00
TomasVotruba
7ecfa73ac9
add TemplateAnnotationToThisRenderRector for nested closure
2020-07-17 10:00:12 +02:00
TomasVotruba
0c816d60f8
[config] switch rules config from YAML to PHP
2020-07-16 12:48:54 +02:00
TomasVotruba
836200068b
improve template annotation
2020-07-05 21:16:17 +02:00
TomasVotruba
94252d3eb3
[Sensio] Fix nested function scope of return
2020-07-03 17:53:40 +02:00
TomasVotruba
bf8e9c2e2f
pass data to argument
2020-07-01 01:20:47 +02:00
TomasVotruba
577011ef68
add return response|null fixture
2020-07-01 01:14:38 +02:00
TomasVotruba
31a019b0d7
add constant return array support
2020-06-30 21:36:24 +02:00
TomasVotruba
59dbe98883
cover return array method
2020-06-30 10:58:45 +02:00
TomasVotruba
cf29b1dacb
skip array in call
2020-06-30 02:20:09 +02:00
TomasVotruba
2758fd5339
re-use hasPhpDocTagValueNode()
2020-06-30 02:20:09 +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
e08f834af5
[Symfony] remove template annotatoin if returns response
2020-06-29 14:21:45 +02:00
TomasVotruba
828d8cf67f
prevent remove false template
2020-06-29 13:50:36 +02:00
TomasVotruba
3d8205661b
make sure only annotatoins is not removed
2020-06-29 03:00:34 +02:00
TomasVotruba
4c4e306c2b
add support for union of response and array
2020-06-29 02:24:57 +02:00
TomasVotruba
40a58dbf4c
rename TemplateAnnotationRector to TemplateAnnotationToThisRender
2020-06-29 00:30:20 +02:00
TomasVotruba
b4bc085103
decouple PhpDocInfoManipulator
2020-06-29 00:21:00 +02:00
TomasVotruba
c4dfdd0293
add getPhpDocTagValueNode() method
2020-06-29 00:13:46 +02:00
TomasVotruba
058ce1f1ce
decopule ThisRenderFactory
2020-06-29 00:04:47 +02:00
TomasVotruba
d8dfc39df1
decouple ReturnTypeDeclarationUpdater
2020-06-28 23:59:33 +02:00
TomasVotruba
bba3327993
merge template annotation rector version to 5
2020-06-28 23:26:45 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
0af401c91a
decouple ArrayPartPhpDocTagPrinterTrait
2020-06-16 11:37:43 +02:00