5298 Commits

Author SHA1 Message Date
Tomáš Votruba
8563fae44e
fix deleting file that matches class name (#1471)
fix deleting file that matches class name
2019-05-24 16:39:07 +02:00
Tomas Votruba
cbe0a8b36b fix deleting file that matches class name 2019-05-24 16:32:47 +02:00
Tomáš Votruba
c729af82ba
[PHP][CodingStyle] string class to ::class (#1470)
[PHP][CodingStyle] string class to ::class
2019-05-24 15:10:21 +02:00
Tomáš Votruba
26af00664b
Merge pull request #1468 from rectorphp/fix-psr-4-splitter-deletes-original-file
[MultipleClassFileToPsr4ClassesRector] Original file is deleted even if class matches filename
2019-05-24 15:06:44 +02:00
Tomas Votruba
f51b3d3a71 [PHP] Add StringClassNameToClassConstantRector 2019-05-24 15:05:39 +02:00
Jan Mikeš
0f8bf6c75a
Failing tests 2019-05-24 11:46:05 +02:00
Tomáš Votruba
90ffe43c7a
do not override printing files with previous stmts if possible (#1464)
do not override printing files with previous stmts if possible
2019-05-23 22:20:43 +02:00
Tomas Votruba
c0415f9216 do not override printing files with previous stmts if possible 2019-05-23 22:07:25 +02:00
Tomáš Votruba
aa67fe90e0
[supporŧ] add funding Github - news from Github Satellite (#1461)
[supporŧ] add funding Github - news from Github Satellite
2019-05-23 12:06:37 +02:00
Tomas Votruba
f6e8d4a662 add funding Github 2019-05-23 11:53:33 +02:00
Tomáš Votruba
75a12317c7
[Psr4] Add supprot for namespace less MultipleClassFileToPsr4ClassesRector (#1460)
[Psr4] Add supprot for namespace less MultipleClassFileToPsr4ClassesRector
2019-05-23 09:07:33 +02:00
Tomas Votruba
7c6c6aaa45 [Psr4] Add supprot for namespace less MultipleClassFileToPsr4ClassesRector 2019-05-23 08:09:28 +02:00
Tomáš Votruba
5a4b1bee48
Merge pull request #1452 from rectorphp/import-non-namespaced
Add non-namespaced support to ImportFullyQualifiedNamesRector
2019-05-22 17:54:20 +02:00
Tomas Votruba
53cd941dcd refactor ImportFullyQualifiedNamesRector to allow non-namespaced elements 2019-05-22 17:33:51 +02:00
Tomáš Votruba
5757e867e0
[PHP] Add RemoveMissingCompactVariableRector (#1451)
[PHP] Add RemoveMissingCompactVariableRector
2019-05-19 13:44:47 +02:00
Tomas Votruba
393c39c40d [PHP] Add RemoveMissingCompactVariableRector 2019-05-19 13:39:29 +02:00
Tomáš Votruba
9a29f44bb8
[PHP 7.1] Add float to BinaryOpBetweenNumberAndStringRector (#1450)
[PHP 7.1] Add float to BinaryOpBetweenNumberAndStringRector
2019-05-19 13:29:05 +02:00
Tomas Votruba
c4562fc741 [PHP 7.1] Add BinaryOpBetweenNumberAndStringRector 2019-05-19 13:28:43 +02:00
Tomáš Votruba
1c6bb745d1
[PHP 7.1] Add BinaryOpBetweenNumberAndStringRector (#1449)
[PHP 7.1] Add BinaryOpBetweenNumberAndStringRector
2019-05-19 13:18:54 +02:00
Tomas Votruba
b3f55428b3 [PHP 7.1] Add BinaryOpBetweenNumberAndStringRector 2019-05-19 12:37:51 +02:00
Tomáš Votruba
00465053a1
[CodingStyle] add partial support already imported support to ImportFullyQualifiedNamesRector (#1447)
[CodingStyle] add partial support already imported support to ImportFullyQualifiedNamesRector
2019-05-19 12:25:03 +02:00
Tomas Votruba
04949c3094 add partial support already imported support to ImportFullyQualifiedNamesRector 2019-05-19 12:09:53 +02:00
Tomáš Votruba
830bae7d27
Narrow ArraySpreadInsteadOfArrayMergeRector to numeric-arrays only (#1446)
Narrow ArraySpreadInsteadOfArrayMergeRector to numeric-arrays only
2019-05-19 11:50:07 +02:00
Tomas Votruba
66b9b6dde2 Narrow ArraySpreadInsteadOfArrayMergeRector to numeric-arrays only 2019-05-19 11:43:08 +02:00
Tomáš Votruba
3c0fb204e8
fix ReservedObjectRector for lowercased object (#1444)
fix ReservedObjectRector for lowercased object
2019-05-19 10:44:47 +02:00
Tomas Votruba
26ce8e4c77 travis: add fast_finish [skip ci] 2019-05-19 10:44:14 +02:00
Tomas Votruba
c470d6b5f0 fix ReservedObjectRector for lowercased object 2019-05-19 10:35:29 +02:00
Tomáš Votruba
475b875b5b
[CodeQuality] Add CompactToVariablesRector (#1443)
[CodeQuality] Add CompactToVariablesRector
2019-05-19 10:35:09 +02:00
Tomas Votruba
ad02742e5b update docs 2019-05-19 10:29:05 +02:00
Tomas Votruba
ad95d018b5 [CodeQuality] Add CompactToVariablesRector 2019-05-19 10:26:00 +02:00
Tomáš Votruba
d1d5ee4681
[PSR4] Improve MultipleClassFileToPsr4ClassesRector output (#1439)
[PSR4] Improve MultipleClassFileToPsr4ClassesRector output
2019-05-19 09:45:53 +02:00
Tomas Votruba
c71a2e8f81 report deleted/added files in FileSystem Rectors 2019-05-19 09:38:39 +02:00
Tomáš Votruba
ce03100929
[CodeQuality] Add For to foreach (#1419)
[CodeQuality] Add For to foreach
2019-05-19 01:02:34 +02:00
Tomas Votruba
ee1f606827 [CodeQuality] Add ForToForeachRector 2019-05-19 01:02:19 +02:00
Tomáš Votruba
6830fb3fea
Merge pull request #1430 from ktomk/patch-cwd
Add working directory option
2019-05-18 22:47:42 +02:00
Tomáš Votruba
6fa471f5ae
[PHP 7.4] Spread array (#1416)
[PHP 7.4] Spread array
2019-05-16 12:01:32 +03:00
Tomas Votruba
e2fba5c6fd [PHP 7.4] Add array spread operator 2019-05-16 01:37:12 +02:00
Tomas Votruba
058dd47509 composer: use php-parser with ... 2019-05-15 09:30:23 +02:00
Tomáš Votruba
a25278acdf
Merge pull request #1429 from sasezaki/fix/howitworks_md
Add missing end bracket at HowItWorks.md's sample
2019-05-14 19:40:58 +02:00
Tom Klingenberg
4a13ed5387 Add working directory option
New command-line utility option:

   -d, --working-dir=WORKING-DIR

If specified, use the given directory as working directory.

Follows same syntax as Composer (quick port from there).

There is a clash with the process command -d alias. It's behavior
changes:

Old usage of the -d flag will throw an exception as it now requires an
argument.

Instead use the -n switch which is also in the commons for --dry-run (e.g.
see git).
2019-05-14 17:04:22 +02:00
sasezaki
3740d4b77f Add missing end bracket at HowItWorks.md's sample 2019-05-14 23:36:24 +09:00
Tomáš Votruba
eeae05176a
speedup RenameClassRector on doc comments (#1425)
speedup RenameClassRector on doc comments
2019-05-14 00:00:45 +02:00
Tomas Votruba
932bb277fa speedup RenameClassRector on doc comments 2019-05-13 23:39:29 +02:00
Tomáš Votruba
2b4f3feb2c
Merge pull request #1424 from mxr576/issue/1423
[SplitStringClassConstantToClassConstFetchRector] Remove duplicated namespace separator
2019-05-13 10:46:04 +02:00
Dezső BICZÓ
e5daee5397
Remove duplicated namespace separator
#1423
2019-05-13 09:43:50 +02:00
Tomáš Votruba
2b2928eab9
Merge pull request #1418 from rectorphp/inject-annot
[PHP-DI] Add php-di @Inject annotation import
2019-05-12 18:59:45 +02:00
Tomáš Votruba
de4cca7f3b
Merge pull request #1414 from rectorphp/split-all-classlike-psr4
[PSR-4 Split] Split interfaces and traits as well
2019-05-12 18:45:22 +02:00
Tomas Votruba
088b1f136d [PHP-DI] Add php-di-decouple level [closes #1400] 2019-05-12 18:03:07 +02:00
Tomas Votruba
5d73191fa8 decouple JmsInjectAnnotationRector to configurable InjectAnnotationClassRector 2019-05-12 18:02:28 +02:00
Tomáš Votruba
2c5d7fa610
Merge pull request #1417 from rectorphp/bug-traits
Add trait analysis without class dependency
2019-05-12 11:08:21 +02:00