Skip to content

Commit 9e291c5

Browse files
committed
Enhancement: Synchronize with ergebnis/php-package-template
1 parent bfa4ca8 commit 9e291c5

File tree

7 files changed

+20
-25
lines changed

7 files changed

+20
-25
lines changed

.github/CONTRIBUTING.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CONTRIBUTING
22

3-
We are using [GitHub Actions](https://github.com/features/actions) as a continuous integration system.
3+
We use [GitHub Actions](https://github.com/features/actions) as a continuous integration system.
44

55
For details, take a look at the following workflow configuration files:
66

@@ -12,9 +12,9 @@ For details, take a look at the following workflow configuration files:
1212

1313
## Coding Standards
1414

15-
We are using [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) to normalize `composer.json`.
15+
We use [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) to normalize `composer.json`.
1616

17-
We are using [`yamllint`](https://github.com/adrienverge/yamllint) to enforce coding standards in YAML files.
17+
We use [`yamllint`](https://github.com/adrienverge/yamllint) to enforce coding standards in YAML files.
1818

1919
If you do not have `yamllint` installed yet, run
2020

@@ -24,7 +24,7 @@ brew install yamllint
2424

2525
to install `yamllint`.
2626

27-
We are using [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) to enforce coding standards in PHP files.
27+
We use [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) to enforce coding standards in PHP files.
2828

2929
Run
3030

@@ -36,7 +36,7 @@ to automatically fix coding standard violations.
3636

3737
## Dependency Analysis
3838

39-
We are using [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerRequireChecker) to prevent the use of unknown symbols in production code.
39+
We use [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerRequireChecker) to prevent the use of unknown symbols in production code.
4040

4141
Run
4242

@@ -48,7 +48,7 @@ to run a dependency analysis.
4848

4949
## Mutation Tests
5050

51-
We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.
51+
We use [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.
5252

5353
Enable `Xdebug` and run
5454

@@ -60,7 +60,7 @@ to run mutation tests.
6060

6161
## Refactoring
6262

63-
We are using [`rector/rector`](https://github.com/rectorphp/rector) to automatically refactor code.
63+
We use [`rector/rector`](https://github.com/rectorphp/rector) to automatically refactor code.
6464

6565
Run
6666

@@ -72,7 +72,7 @@ to automatically refactor code.
7272

7373
## Security Analysis
7474

75-
We are using [`composer`](https://github.com/composer/composer) to run a security analysis.
75+
We use [`composer`](https://github.com/composer/composer) to run a security analysis.
7676

7777
Run
7878

@@ -84,7 +84,7 @@ to run a security analysis.
8484

8585
## Static Code Analysis
8686

87-
We are using [`phpstan/phpstan`](https://github.com/phpstan/phpstan) and [`vimeo/psalm`](https://github.com/vimeo/psalm) to statically analyze the code.
87+
We use [`phpstan/phpstan`](https://github.com/phpstan/phpstan) and [`vimeo/psalm`](https://github.com/vimeo/psalm) to statically analyze the code.
8888

8989
Run
9090

@@ -94,7 +94,7 @@ make static-code-analysis
9494

9595
to run a static code analysis.
9696

97-
We are also using the baseline features of [`phpstan/phpstan`](https://phpstan.org/user-guide/baseline) and [`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file).
97+
We also use the baseline features of [`phpstan/phpstan`](https://phpstan.org/user-guide/baseline) and [`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file).
9898

9999
Run
100100

@@ -108,7 +108,7 @@ to regenerate the baselines in [`../phpstan-baseline.neon`](../phpstan-baseline.
108108

109109
## Tests
110110

111-
We are using [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit) to drive the development.
111+
We use [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit) to drive the development.
112112

113113
Run
114114

.github/dependabot.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33
version: 2
44

55
updates:
6-
- commit-message:
6+
- allow:
7+
- dependency-type: "development"
8+
commit-message:
79
include: "scope"
810
prefix: "composer"
911
directory: "/"
10-
ignore:
11-
- dependency-name: "doctrine/annotations"
12-
- dependency-name: "doctrine/collections"
13-
- dependency-name: "doctrine/dbal"
14-
- dependency-name: "doctrine/orm"
15-
- dependency-name: "doctrine/persistence"
16-
- dependency-name: "fakerphp/faker"
1712
labels:
1813
- "dependency"
1914
open-pull-requests-limit: 10

.github/workflows/integrate.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
trust-gpg-keys: "0x033E5F8D801A2F8D"
200200

201201
- name: "Run maglnet/composer-require-checker"
202-
run: ".phive/composer-require-checker check --config-file=$(pwd)/composer-require-checker.json"
202+
run: ".phive/composer-require-checker check --ansi --config-file=$(pwd)/composer-require-checker.json --verbose"
203203

204204
mutation-tests:
205205
name: "Mutation Tests"
@@ -276,7 +276,7 @@ jobs:
276276
uses: "shivammathur/[email protected]"
277277
with:
278278
coverage: "none"
279-
extensions: "none, ctype, curl, dom, intl, json, mbstring, pdo, pdo_sqlite, phar, simplexml, tokenizer, xml, xmlwriter"
279+
extensions: "none, ctype, curl, dom, json, mbstring, pdo, pdo_sqlite, phar, simplexml, tokenizer, xml, xmlwriter"
280280
php-version: "${{ matrix.php-version }}"
281281

282282
- name: "Set up problem matchers for PHP"

.phive/phars.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="composer-require-checker" version="^4.6.0" installed="4.6.0" location="./.phive/composer-require-checker" copy="false"/>
3+
<phar name="composer-require-checker" version="^4.7.1" installed="4.7.1" location="./.phive/composer-require-checker" copy="false"/>
44
</phive>

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ coding-standards: vendor ## Lints YAML files with yamllint, normalizes composer.
1616

1717
.PHONY: dependency-analysis
1818
dependency-analysis: phive vendor ## Runs a dependency analysis with maglnet/composer-require-checker
19-
.phive/composer-require-checker check --config-file=$(shell pwd)/composer-require-checker.json
19+
.phive/composer-require-checker check --config-file=$(shell pwd)/composer-require-checker.json --verbose
2020

2121
.PHONY: doctrine
2222
doctrine: vendor ## Shows and validates Docrine mapping information

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ The maintainers of this package suggest following the [contribution guide](.gith
12291229

12301230
## Code of Conduct
12311231

1232-
The maintainers of this package ask contributors to follow the [code of conduct](.github/CODE_OF_CONDUCT.md).
1232+
The maintainers of this package ask contributors to follow the [code of conduct](https://github.com/ergebnis/.github/blob/main/CODE_OF_CONDUCT.md).
12331233

12341234
## General Support Policy
12351235

psalm-baseline.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
2+
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
33
<file src="example/src/Entity/Avatar.php">
44
<PossiblyUnusedMethod>
55
<code>height</code>

0 commit comments

Comments
 (0)