Skip to content

Commit 14b49d8

Browse files
committed
Added dependabot
1 parent adc7070 commit 14b49d8

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.phive/phars.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
66
<phar name="psalm" version="^3.12.2" installed="3.18.2" location="./tools/psalm" copy="true"/>
77
<phar name="infection" version="^0.16.4" installed="0.18.2" location="./tools/infection" copy="true"/>
8+
<phar name="phpbench" version="^1.0.0-alpha4" installed="1.0.0-alpha4" location="./tools/phpbench" copy="true"/>
89
</phive>

rector.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Core\Configuration\Option;
6+
use Rector\Php74\Rector\Property\TypedPropertyRector;
7+
use Rector\Set\ValueObject\SetList;
8+
use Rector\Core\ValueObject\PhpVersion;
9+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
10+
11+
return static function (ContainerConfigurator $containerConfigurator): void {
12+
// get parameters
13+
$parameters = $containerConfigurator->parameters();
14+
15+
$parameters->set(Option::PATHS, [__DIR__ . '/src']);
16+
17+
// Define what rule sets will be applied
18+
$parameters->set(Option::SETS, [
19+
// SetList::DEAD_CODE,
20+
SetList::PHP_74,
21+
SetList::TYPE_DECLARATION,
22+
SetList::CODING_STYLE,
23+
SetList::PERFORMANCE
24+
]);
25+
26+
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
27+
28+
// get services (needed for register a single rule)
29+
// $services = $containerConfigurator->services();
30+
31+
// register a single rule
32+
// $services->set(TypedPropertyRector::class);
33+
};

0 commit comments

Comments
 (0)