Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_scoped_rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

# fixes https://github.com/rectorphp/rector/pull/4559/checks?check_run_id=1359814403, see https://github.com/shivammathur/setup-php#composer-github-oauth
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

- uses: "ramsey/composer-install@v3"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code_analysis_no_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

- run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compat_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

- run: composer create-project "rector/rector-compat-tests:dev-main" .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ['8.2']
php_version: ['8.3']
directory:
- 'e2e/applied-auto-import'
- 'e2e/applied-polyfill-php80'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_command_with_option.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

- uses: "ramsey/composer-install@v3"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_with_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ['8.2']
php_version: ['8.3']
directory:
- 'e2e/applied-rule-removed-node-with-cache'
- 'e2e/timeout-file-not-cached'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_with_no_diffs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ['8.2']
php_version: ['8.3']
directory:
- 'e2e/applied-rule-removed-node-no-diffs'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packages_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

- run: composer config minimum-stability dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan_printer_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php-versions: ['8.2']
php-versions: ['8.3']

runs-on: ${{ matrix.os }}
timeout-minutes: 3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
# PHP 8.2 is required, so Rector's code is PHP 8.2 compatible even after refactoring
php-version: 8.2
# PHP 8.3 is required, so Rector's code is PHP 8.3 compatible even after refactoring
php-version: 8.3
coverage: none

- run: composer install --no-progress --ansi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php-versions: ['8.2', '8.3', '8.4', '8.5']
php-versions: ['8.3', '8.4', '8.5']

runs-on: ${{ matrix.os }}
timeout-minutes: 3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly_pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

- uses: "ramsey/composer-install@v3"
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"migration"
],
"require": {
"php": "^8.2",
"php": "^8.3",
"clue/ndjson-react": "^1.3",
"composer/pcre": "^3.3.2",
"composer/semver": "^3.4",
Expand All @@ -32,24 +32,24 @@
"rector/rector-downgrade-php": "dev-main",
"rector/rector-phpunit": "dev-main",
"rector/rector-symfony": "dev-main",
"sebastian/diff": "^6.0",
"sebastian/diff": "^6.0|^7.0",
"symfony/console": "^6.4.24",
"symfony/filesystem": "^6.4",
"symfony/filesystem": "^6.4|7.0.*",
"symfony/finder": "^6.4",
"symfony/process": "^6.4",
"symfony/process": "^6.4|7.0.*",
"symplify/easy-parallel": "^11.2.2",
"symplify/rule-doc-generator-contracts": "^11.2",
"webmozart/assert": "^2.1"
},
"require-dev": {
"nette/robot-loader": "^4.1",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpecs/phpecs": "^2.2",
"symplify/easy-coding-standard": "^13.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^11.5",
"phpunit/phpunit": "^11.5|^12.0",
"rector/jack": "^0.4",
"rector/release-notes-generator": "^0.5.1",
"rector/swiss-knife": "^2.3",
Expand All @@ -59,7 +59,7 @@
"symplify/phpstan-rules": "^14.9.11",
"symplify/vendor-patches": "^11.5",
"tomasvotruba/class-leak": "^2.1",
"tomasvotruba/unused-public": "^2.1",
"tomasvotruba/unused-public": "^2.2",
"tracy/tracy": "^2.11"
},
"replace": {
Expand Down
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
->withAttributesSets()
->withComposerBased(phpunit: true)
->withPhpSets()
->withPhpSets(php82: true)
->withPaths([
__DIR__ . '/bin',
__DIR__ . '/config',
Expand Down
2 changes: 0 additions & 2 deletions tests/Config/RectorConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

namespace Rector\Tests\Config;

use PHPUnit\Framework\Attributes\RunClassInSeparateProcess;
use Rector\Configuration\Option;
use Rector\Configuration\Parameter\SimpleParameterProvider;
use Rector\Symfony\Set\TwigSetList;
use Rector\Testing\PHPUnit\AbstractLazyTestCase;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector;

#[RunClassInSeparateProcess]
final class RectorConfigTest extends AbstractLazyTestCase
{
public function test(): void
Expand Down