Skip to content

Commit fe9e3d2

Browse files
authored
Merge pull request #27 from tattersoftware/tools
Restricted Files
2 parents 221d76a + 175caa4 commit fe9e3d2

13 files changed

+53
-14
lines changed

.github/workflows/deptrac.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- develop
77
paths:
88
- '**.php'
9-
- 'composer.**'
9+
- 'composer.*'
1010
- 'depfile.yaml'
1111
- '.github/workflows/deptrac.yml'
1212
push:
1313
branches:
1414
- develop
1515
paths:
1616
- '**.php'
17-
- 'composer.**'
17+
- 'composer.*'
1818
- 'depfile.yaml'
1919
- '.github/workflows/deptrac.yml'
2020

.github/workflows/infection.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- develop
77
paths:
88
- '**.php'
9-
- 'composer.**'
9+
- 'composer.*'
1010
- 'phpunit*'
1111
- '.github/workflows/infection.yml'
1212
push:
1313
branches:
1414
- develop
1515
paths:
1616
- '**.php'
17-
- 'composer.**'
17+
- 'composer.*'
1818
- 'phpunit*'
1919
- '.github/workflows/infection.yml'
2020

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- develop
77
paths:
88
- '**.php'
9-
- 'composer.**'
9+
- 'composer.*'
1010
- 'phpstan*'
1111
- '.github/workflows/phpstan.yml'
1212
push:
1313
branches:
1414
- develop
1515
paths:
1616
- '**.php'
17-
- 'composer.**'
17+
- 'composer.*'
1818
- 'phpstan*'
1919
- '.github/workflows/phpstan.yml'
2020

.github/workflows/phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- develop
77
paths:
88
- '**.php'
9-
- 'composer.**'
9+
- 'composer.*'
1010
- 'phpunit*'
1111
- '.github/workflows/phpunit.yml'
1212
push:
1313
branches:
1414
- develop
1515
paths:
1616
- '**.php'
17-
- 'composer.**'
17+
- 'composer.*'
1818
- 'phpunit*'
1919
- '.github/workflows/phpunit.yml'
2020

.github/workflows/rector.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- develop
77
paths:
88
- '**.php'
9-
- 'composer.**'
9+
- 'composer.*'
1010
- 'rector.php'
1111
- '.github/workflows/rector.yml'
1212
push:
1313
branches:
1414
- develop
1515
paths:
1616
- '**.php'
17-
- 'composer.**'
17+
- 'composer.*'
1818
- 'rector.php'
1919
- '.github/workflows/rector.yml'
2020

@@ -64,5 +64,5 @@ jobs:
6464
6565
- name: Analyze for refactoring
6666
run: |
67-
composer global require --dev rector/rector:^0.12.10
67+
composer global require --dev rector/rector:^0.12.16
6868
rector process --dry-run --no-progress-bar

composer-unused.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use ComposerUnused\ComposerUnused\Configuration\Configuration;
6+
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
7+
use ComposerUnused\ComposerUnused\Configuration\PatternFilter;
8+
use Webmozart\Glob\Glob;
9+
10+
return static function (Configuration $config): Configuration {
11+
return $config
12+
// ->addNamedFilter(NamedFilter::fromString('symfony/config'))
13+
// ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
14+
->setAdditionalFilesFor('codeigniter4/framework', [
15+
...Glob::glob(__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php'),
16+
]);
17+
};

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"twbs/bootstrap": "^4.0"
3737
},
3838
"require-dev": {
39-
"codeigniter4/devkit": "^1.0",
40-
"codeigniter4/framework": "^4.1"
39+
"codeigniter4/framework": "^4.1",
40+
"tatter/tools": "^2.0"
4141
},
4242
"config": {
4343
"allow-plugins": {

rector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
3030
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3131
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
32+
use Rector\Php74\Rector\Property\TypedPropertyRector;
3233
use Rector\PHPUnit\Set\PHPUnitSetList;
3334
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3435
use Rector\Set\ValueObject\LevelSetList;
@@ -122,4 +123,8 @@
122123
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
123124
$services->set(SimplifyEmptyArrayCheckRector::class);
124125
$services->set(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
126+
$services->set(TypedPropertyRector::class)
127+
->configure([
128+
TypedPropertyRector::INLINE_PUBLIC => true,
129+
]);
125130
};

roave-bc-check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
ignoreErrors:
3+
- '#\[BC\] SKIPPED: .+ could not be found in the located source#'

src/Publishers/DataTablesPublisher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function publish(): bool
1919
return $this
2020
->addPath('js')
2121
->addPath('types')
22+
->removePattern('*.ts')
2223
->merge(true);
2324
}
2425
}

0 commit comments

Comments
 (0)