450 Commits

Author SHA1 Message Date
Tomas Votruba
8304d70f67
[Symfony] Decouple to own package (#5900) 2021-03-18 22:03:54 +00:00
TomasVotruba
a6b054b992 [CI] downgrade on main only 2021-03-18 18:00:32 +01:00
Tomas Votruba
a389839c5c
[CI] Downgrade Rector to PHP 7.1 + prefix it (#5880)
* [downgrade] simplify to 2 configs

* rename downgrade_packages.sh to downgrade_rector_to_php71.sh

* add test case stub

* [CI] add linter for php code

* [CI] update tagged workflow

* update for covariance

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-18 02:48:44 +01:00
Tomas Votruba
683f8319a8
[CI] simplify php linter (#5867)
* [CI] simplify php linter

* [CI] merge code analysis to one

* [docs] remove nodes overview, already in external repository

* remove unused ci job

* [CI] check annotation parser + sync

* [DeadCode] Remove RemoveEmptyAbstractClassRector, not reliable with static-reflection, opionated

* [CI] remove set validation, PHPStan handles this better with PHP

* remove dead-code-strict [skip ci]
2021-03-15 23:44:28 +01:00
TomasVotruba
c6196ad2ce [CI] split tests by paths 2021-03-15 20:59:26 +01:00
dependabot[bot]
1565a751aa
Bump EndBug/add-and-commit from v7.0.0 to v7.1.0 (#5865)
Bumps [EndBug/add-and-commit](https://github.com/EndBug/add-and-commit) from v7.0.0 to v7.1.0.
- [Release notes](https://github.com/EndBug/add-and-commit/releases)
- [Changelog](https://github.com/EndBug/add-and-commit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/EndBug/add-and-commit/compare/v7.0.0...701772d3525172d14fba9e972806915ec0eb6954)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 20:38:34 +01:00
dependabot[bot]
9f605eaa7e
Bump actions/cache from v2 to v2.1.4 (#5866)
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 20:38:26 +01:00
TomasVotruba
1f149a0fcc typo 2021-03-15 20:37:20 +01:00
TomasVotruba
fda63b9e0e [CI] add dependabot 2021-03-15 20:32:56 +01:00
Tomas Votruba
c1c6c9aaf2
[downgrade] remove extra configs, unite parameters (#5861) 2021-03-15 13:19:57 +00:00
Abdul Malik Ikhsan
a2f1ac1c09
try back to check PrettyVersions only (#5856) 2021-03-14 19:49:55 +00:00
Abdul Malik Ikhsan
52d94dd8d5
[Scoper] Try fix InstalledVersions autoload in docker with env definition check (#5855) 2021-03-14 18:30:02 +00:00
Abdul Malik Ikhsan
03594e4ca6
[Github Action] Fixes fail-fast location to be in strategy on publish_docker_images action (#5850)
* [Github Action] Fixes #5849 Fixes fail-fast location to be in strategy on publish_docker_images action

* final touch
2021-03-14 23:37:25 +07:00
Tomas Votruba
751a7453dd
Apply new PHPStan rules from Symplify (#5843)
* apply new PHPStan rules from Symplify

* less directories to speedup CI
2021-03-14 14:11:24 +01:00
TomasVotruba
badaaaf99d [CI] build prefixed on PHP 7.3, that is being used for deps 2021-03-13 21:41:14 +01:00
Tomas Votruba
9beb1da3c0
Move fixture requirement from command line to a test case (#5832) 2021-03-13 15:07:31 +01:00
Tomas Votruba
ab1154f6c8
[CI] Drop fixture checks, that are now covered by static reflection (#5831) 2021-03-13 11:47:11 +01:00
Matthias Pigulla
5677e7caef
Don't abort building Docker images when one variant fails (#5830) 2021-03-13 11:29:44 +01:00
Tomas Votruba
721f619a1d
Post moving cleanup (#5827) 2021-03-12 23:52:38 +00:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure (#5826) 2021-03-12 23:20:25 +01:00
Tomas Votruba
c791f5ed60
[RectorGenerator] Decouple to external package (#5825) 2021-03-12 20:13:27 +01:00
TomasVotruba
eb80d1a48b bump master branch to main 2021-03-11 21:29:21 +01:00
Tomas Votruba
1cbb6113fc
[CI] remove changelog linker (#5803) 2021-03-08 19:50:03 +00:00
Abdul Malik Ikhsan
e362a516c2
[changelog] remove CHANGELOG.md first before run composer changelog on weekly composer changelog (#5790)
It seems automatic PR https://github.com/rectorphp/rector/pull/5789 doesn't generate tag header like manual delete and re-create at https://github.com/rectorphp/rector/pull/5719 . 

This ensure CHANGELOG.md re-generated by remove it first.
2021-03-07 12:39:52 +01:00
TomasVotruba
273e1d2974 [CI] make PHP 7.1 build inactive untill it get fixed from static reflection 2021-03-05 01:30:51 +01:00
Jan Mikeš
ab8a1e517d
[Docker] Setup QEMU for multiarch builds (#5774) 2021-03-04 14:40:51 +01:00
Jan Mikeš
7e131b91c9
[Docker] Support multiple CPU architectures - arm64 + amd64 (#5773) 2021-03-04 13:51:33 +01:00
Matthias Pigulla
a2bebbed5c
Generate Docker tags in more efficient way (#5732) 2021-03-04 11:37:42 +01:00
Tomas Votruba
382f146eaf
Merge CoreRectorInterface (#5762) 2021-03-03 22:28:27 +01:00
Tomas Votruba
c1dab30664
[MockistaToMockery] Drop as mockista is completely dead package (#5758) 2021-03-03 18:40:45 +01:00
Jan Mikeš
f3cdb06adf
Drop no longer needed secured rector version of Docker image (#5759) 2021-03-03 17:37:59 +00:00
Tomas Votruba
b7b6725364
remove abstract (#5736) 2021-03-03 08:49:57 +00:00
Tomas Votruba
3673e2182c
[StaticReflection] Add OptimizedDirectorySourceLocator to speedup directory analysis (#5727)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-02 23:42:53 +00:00
Jan Mikeš
013c7c7ca3
[CI][Docker] Fix missing image when tagging (#5731) 2021-03-02 15:27:07 +01:00
Jan Mikeš
f7b65a09b2
[CI][Docker] Merge Docker image tagging jobs (#5730) 2021-03-02 15:20:34 +01:00
Jan Mikeš
00833e1ca1
Allow failure of pushing additional tags (#5729) 2021-03-02 15:06:13 +01:00
Jan Mikeš
85298cfff7
Add additional tags on Docker images based on git ref (#5726) (#5728) 2021-03-02 14:59:33 +01:00
Tomas Votruba
d5bf66f9cd
[CI] run rules dir by dir to identify static reflection weak sposts (#5720)
* [CI] run rules dir by dir to identify static reflection weak sposts

* [ci-review] Rector Rectify

* consistency

* remove unused property

* add data provider test fixture

* add InvertedIfFactory to lower complexity

* [DeadCode] Skip unused public method if data provider

* misc

* [DeadCode] Do not remove class method if required by parent ocntract

* make use of ContextAnalyzer to find the loop

* narrow dirs one level

* narrow packages

* narrow

* use directly

* narrow

* correct constant name to keep BC

* bump deps

* add version_compare to removed extra params, just to be sure

* do not return function node on unchanged name

* narrow

* add support for multiple variants

* widen

* remove double check [skip ci]

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-02 14:43:36 +01:00
Jan Mikeš
66f6b4a573
Fix name of Docker image (#5726) 2021-03-02 14:31:45 +01:00
Matthias Pigulla
ff93a759e6
Build "scoped" Docker images in GitHub Actions (#5667)
* Improve GHA build process to provide scoped Docker images for PHP 7.3-8.0

* Push cached build layers to Docker Hub instead of ghcr.io

* Build "-secured" Docker image

* Run Docker publish workflow for the "experimental-scoped" branch

* Use "plain" progress output from buildx

* Build only one image named "secured", based on PHP 8.0
2021-03-02 14:25:39 +01:00
Tomas Votruba
11dab764e6
[PHPStanStaticTypeMapperChecker] Drop as very limited testing benefit, overly protective (#5721) 2021-03-02 11:22:49 +00:00
Abdul Malik Ikhsan
9576d65326
[Rector-CI] Update EndBug/add-and-commit to v7.0.0 (#5700) 2021-02-28 10:32:21 +01:00
Tomas Votruba
4909e63a1d
Make use of static reflection from PHPStan (#5665)
* break test without autoload

* PHPStanServiceFactory - add tests directory as analysed paths

* use ReflectionProvider instead of class_exists

* use native reflections for annotation reader

* use native class and method reflections

* add RectorBetterReflectionSourceLocatorFactory

* add DynamicSourceLocator that is shared by PHPStan and Rector

* use ReflectoinProvider instead of class_exists()

* resolve native ClassMethodReflection

* make AnonymousFunctionFactory use reflection

* [DowngradePHP74] Improve DowngradeCovariantReturnTypeRector

* phsptan: avoid ClassReflection

* ProcessCommand: add file infos to source locator

* [DeadCode] Skip RemoveUnusedPublicMethodRector for test

* remove autolaod from tests

* misc

* remove is_a()

* [CI] enable only few dirs to avoid fails

* misc

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-28 08:47:48 +01:00
Abdul Malik Ikhsan
9f4353c2af
[Coverage] Delete weekly coverage generation (#5631)
* [Coverage] Delete weekly coverage generation

* remove coverage badge
2021-02-20 17:41:38 +00:00
Abdul Malik Ikhsan
3cb9fc28b3
[Coverage] Add --testdox to phpunit command on weekly code coveage generation (#5630) 2021-02-20 14:38:40 +00:00
Tomas Votruba
652459ad3b
merge composer_validate (#5620) 2021-02-19 01:36:48 +01:00
Abdul Malik Ikhsan
4674e57a9f
Revert "[PHP 7.1 Scoped] Use PHP 7.1 for build php 7.1 (#5562)" (#5563)
This reverts commit 642110750f6a39e6d6483d103e49aedb78d6f444.
2021-02-15 19:34:21 +00:00
Tomas Votruba
1d80ef3df6
[TypeDeclaration] Add external types to ParamTypeFromStrictTypedPropertyRector (#5560) 2021-02-15 19:31:53 +00:00
Abdul Malik Ikhsan
642110750f
[PHP 7.1 Scoped] Use PHP 7.1 for build php 7.1 (#5562) 2021-02-15 19:20:20 +00:00
Abdul Malik Ikhsan
4fa3573dff
[PHP 7.1 Scoped] install dev dependency as well to allow run phpunit (#5561)
* [PHP 7.1 Scoped] install dev dependency as well to allow run phpunit
2021-02-15 18:51:26 +00:00