Skip to content

Commit

Permalink
release PHP 7.2 downgraded 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 17, 2025
1 parent 6b32c5f commit f0e3a9e
Show file tree
Hide file tree
Showing 656 changed files with 1,339 additions and 14,452 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/code_analysis.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/downgraded_release.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/tests.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions build/composer-php-72.json

This file was deleted.

7 changes: 0 additions & 7 deletions build/rector-downgrade-php-72.php

This file was deleted.

38 changes: 3 additions & 35 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,17 @@
"license": "MIT",
"description": "Rector upgrades rules for Laravel Framework",
"require": {
"php": ">=8.2",
"rector/rector": "^2.0.0",
"webmozart/assert": "^1.11",
"symplify/rule-doc-generator-contracts": "^11.2"
},
"require-dev": {
"nikic/php-parser": "^5.3",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^10.5",
"symplify/rule-doc-generator": "^12.2",
"tightenco/duster": "^3.1"
"php": "^7.2 || ^8.0",
"rector/rector": "^2.0"
},
"autoload": {
"psr-4": {
"RectorLaravel\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"RectorLaravel\\Tests\\": "tests"
},
"classmap": ["stubs"]
},
"scripts": {
"phpstan": "vendor/bin/phpstan analyse --ansi",
"test": "vendor/bin/phpunit tests",
"lint": "vendor/bin/duster lint",
"fix": "vendor/bin/duster fix",
"rector-dry-run": "vendor/bin/rector process --dry-run --ansi",
"rector": "vendor/bin/rector process --ansi",
"docs": "vendor/bin/rule-doc-generator generate src --output-file docs/rector_rules_overview.md --ansi"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"rector/extension-installer": true,
"phpstan/extension-installer": true,
"cweagans/composer-patches": false
}
}
"prefer-stable": true
}
4 changes: 3 additions & 1 deletion config/sets/laravel-array-str-functions-to-static-call.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
new FuncCallToStaticCall('studly_case', 'Illuminate\Support\Str', 'studly'),
new FuncCallToStaticCall('title_case', 'Illuminate\Support\Str', 'title'),
],
fn ($function) => ! in_array($function->getOldFuncName(), $internalFunctions, true)
function ($function) use ($internalFunctions) {
return ! in_array($function->getOldFuncName(), $internalFunctions, true);
}
)
);
};
14 changes: 7 additions & 7 deletions config/sets/laravel-arrayaccess-to-method-call.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
[
new ArrayDimFetchToMethodCall(
new ObjectType('Illuminate\Foundation\Application'),
'make',
'make'
),
new ArrayDimFetchToMethodCall(
new ObjectType('Illuminate\Contracts\Foundation\Application'),
'make',
'make'
),
new ArrayDimFetchToMethodCall(
new ObjectType('Illuminate\Config\Repository'),
'get',
'get'
),
new ArrayDimFetchToMethodCall(
new ObjectType('Illuminate\Contracts\Config\Repository'),
'make',
'make'
),
new ArrayDimFetchToMethodCall(
new ObjectType('Illuminate\Contracts\Container\Container\Application'),
'make',
'make'
),
new ArrayDimFetchToMethodCall(
new ObjectType('Illuminate\Contracts\Container\Container'),
'make',
'make'
),
],
]
);
};
18 changes: 10 additions & 8 deletions config/sets/laravel-container-string-to-fully-qualified-name.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@
];

$ruleConfig = array_map(
fn (string $service, string $interface) => new ReplaceServiceContainerCallArg(
$service,
new ClassConstFetch(
new FullyQualified($interface),
'class'
)
),
function (string $service, string $interface) {
return new ReplaceServiceContainerCallArg(
$service,
new ClassConstFetch(
new FullyQualified($interface),
'class'
)
);
},
array_keys($servicesMap),
$servicesMap,
$servicesMap
);

$rectorConfig->ruleWithConfiguration(
Expand Down
6 changes: 3 additions & 3 deletions config/sets/laravel90.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'path',
'',
null,
ArgumentAddingScope::SCOPE_CLASS_METHOD,
ArgumentAddingScope::SCOPE_CLASS_METHOD
),
]);

Expand All @@ -41,7 +41,7 @@
'path',
'',
null,
ArgumentAddingScope::SCOPE_CLASS_METHOD,
ArgumentAddingScope::SCOPE_CLASS_METHOD
),
]);

Expand All @@ -54,7 +54,7 @@
'attribute',
null,
null,
ArgumentAddingScope::SCOPE_CLASS_METHOD,
ArgumentAddingScope::SCOPE_CLASS_METHOD
),
]);

Expand Down
36 changes: 0 additions & 36 deletions phpstan.neon

This file was deleted.

15 changes: 0 additions & 15 deletions phpunit.xml

This file was deleted.

Loading

0 comments on commit f0e3a9e

Please sign in to comment.