Skip to content

Commit

Permalink
chore: bumps dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Sep 19, 2024
1 parent 5fcfb92 commit e6749dc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
}
],
"require": {
"php": "^8.2.0"
"php": "^8.3.0"
},
"require-dev": {
"laravel/pint": "^1.13.7",
"pestphp/pest": "^2.28.1",
"phpstan/phpstan": "^1.10.50",
"rector/rector": "^0.18.13",
"symfony/var-dumper": "^6.4.0|^7.0.0"
"laravel/pint": "^1.17.3",
"pestphp/pest": "^3.0.7",
"phpstan/phpstan": "^1.12.4",
"rector/rector": "^1.2.5",
"symfony/var-dumper": "^7.1.4"
},
"autoload": {
"psr-4": {
Expand Down
37 changes: 17 additions & 20 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,23 @@

declare(strict_types=1);

use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
]);

$rectorConfig->rules([
InlineConstructorDefaultToPropertyRector::class,
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
SetList::TYPE_DECLARATION,
SetList::PRIVATIZATION,
]);
};
__DIR__.'/tests',
])
->withSkip([
AddOverrideAttributeToOverriddenMethodsRector::class,
])
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
privatization: true,
earlyReturn: true,
strictBooleans: true,
)
->withPhpSets();
2 changes: 1 addition & 1 deletion tests/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use NunoMaduro\SkeletonPhp\Example;

it('foo', function () {
it('foo', function (): void {
$example = new Example();

$result = $example->foo();
Expand Down

0 comments on commit e6749dc

Please sign in to comment.