Skip to content

Commit 6fbb637

Browse files
authored
Merge pull request #278 from greg0ire/2.1.x
Merge 2.0.x up into 2.1.x
2 parents f587d8c + 04ce0cc commit 6fbb637

80 files changed

Lines changed: 123 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ phpunit.xml.dist export-ignore
44
phpcs.xml.dist export-ignore
55
composer.lock export-ignore
66
phpstan.neon.dist export-ignore
7-
psalm.xml export-ignore

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
labels:
8+
- "CI"

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
coding-standards:
1414
name: "Coding Standards"
15-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@2.1.0"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.2.1"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Composer Lint"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*.x"
7+
paths:
8+
- "composer.json"
9+
push:
10+
branches:
11+
- "*.x"
12+
paths:
13+
- "composer.json"
14+
15+
jobs:
16+
composer-lint:
17+
name: "Composer Lint"
18+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@7.2.1"

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: "Roave BC Check"
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: "actions/checkout@v3"
17+
- uses: "actions/checkout@v4"
1818
with:
1919
fetch-depth: 0
2020

@@ -31,6 +31,8 @@ jobs:
3131

3232
phpunit:
3333
name: "PHPUnit"
34-
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@2.1.0"
34+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@7.2.1"
3535
with:
3636
php-versions: '["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]'
37+
secrets:
38+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@2.1.0"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.2.1"
1212
secrets:
1313
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1414
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
static-analysis-phpstan:
1414
name: "Static Analysis"
15-
uses: "doctrine/.github/.github/workflows/static-analysis.yml@2.1.0"
15+
uses: "doctrine/.github/.github/workflows/phpstan.yml@7.2.1"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
name: "Website config validation"
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- "*.x"
8+
paths:
9+
- ".doctrine-project.json"
10+
- ".github/workflows/website-schema.yml"
11+
push:
12+
branches:
13+
- "*.x"
14+
paths:
15+
- ".doctrine-project.json"
16+
- ".github/workflows/website-schema.yml"
17+
18+
jobs:
19+
json-validate:
20+
name: "Validate JSON schema"
21+
uses: "doctrine/.github/.github/workflows/website-schema.yml@7.2.1"

composer.json

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,43 @@
11
{
22
"name": "doctrine/inflector",
3-
"type": "library",
43
"description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.",
5-
"keywords": ["php", "strings", "words", "manipulation", "inflector", "inflection", "uppercase", "lowercase", "singular", "plural"],
6-
"homepage": "https://www.doctrine-project.org/projects/inflector.html",
74
"license": "MIT",
5+
"type": "library",
6+
"keywords": [
7+
"php",
8+
"strings",
9+
"words",
10+
"manipulation",
11+
"inflector",
12+
"inflection",
13+
"uppercase",
14+
"lowercase",
15+
"singular",
16+
"plural"
17+
],
818
"authors": [
9-
{"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
10-
{"name": "Roman Borschel", "email": "roman@code-factory.org"},
11-
{"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
12-
{"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
13-
{"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
19+
{
20+
"name": "Guilherme Blanco",
21+
"email": "guilhermeblanco@gmail.com"
22+
},
23+
{
24+
"name": "Roman Borschel",
25+
"email": "roman@code-factory.org"
26+
},
27+
{
28+
"name": "Benjamin Eberlei",
29+
"email": "kontakt@beberlei.de"
30+
},
31+
{
32+
"name": "Jonathan Wage",
33+
"email": "jonwage@gmail.com"
34+
},
35+
{
36+
"name": "Johannes Schmitt",
37+
"email": "schmittjoh@gmail.com"
38+
}
1439
],
40+
"homepage": "https://www.doctrine-project.org/projects/inflector.html",
1541
"require": {
1642
"php": "^7.2 || ^8.0"
1743
},
@@ -20,22 +46,22 @@
2046
"phpstan/phpstan": "^1.8",
2147
"phpstan/phpstan-phpunit": "^1.1",
2248
"phpstan/phpstan-strict-rules": "^1.3",
23-
"phpunit/phpunit": "^8.5 || ^9.5",
24-
"vimeo/psalm": "^4.25 || ^5.4"
49+
"phpunit/phpunit": "^8.5 || ^9.5"
2550
},
2651
"autoload": {
2752
"psr-4": {
28-
"Doctrine\\Inflector\\": "lib/Doctrine/Inflector"
53+
"Doctrine\\Inflector\\": "src"
2954
}
3055
},
3156
"autoload-dev": {
3257
"psr-4": {
33-
"Doctrine\\Tests\\Inflector\\": "tests/Doctrine/Tests/Inflector"
58+
"Doctrine\\Tests\\Inflector\\": "tests"
3459
}
3560
},
3661
"config": {
3762
"allow-plugins": {
3863
"dealerdirect/phpcodesniffer-composer-installer": true
39-
}
64+
},
65+
"sort-packages": true
4066
}
4167
}

phpcs.xml.dist

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@
1111

1212
<config name="php_version" value="70200"/>
1313

14-
<file>lib</file>
14+
<file>src</file>
1515
<file>tests</file>
1616

17-
<rule ref="Doctrine">
18-
<exclude-pattern>lib/Doctrine/Common</exclude-pattern>
19-
<exclude-pattern>tests/Doctrine/Tests/Common</exclude-pattern>
20-
</rule>
17+
<rule ref="Doctrine" />
2118

2219
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
2320
<properties>

0 commit comments

Comments
 (0)