Skip to content

Commit 16d01f9

Browse files
authored
Bump dev tools and CI workflows (#89)
1 parent 39b9008 commit 16d01f9

19 files changed

+105
-60
lines changed

.github/workflows/coding-standards.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
jobs:
1313
coding-standards:
1414
name: "Coding Standards"
15-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.2.0"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.4.1"
1616
with:
1717
composer-root-version: "1.4"
18+
php-version: "8.1"

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
phpunit:
1414
name: "PHPUnit"
15-
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@1.2.0"
15+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@1.4.1"
1616
with:
17-
php-versions: '["7.1", "7.2", "7.3", "7.4", "8.0"]'
17+
php-versions: '["7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]'
1818
composer-root-version: "1.4"

.github/workflows/phpbench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
matrix:
2323
php-version:
24-
- "7.4"
24+
- "8.1"
2525

2626
steps:
2727
- name: "Checkout"

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ 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@1.2.0"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@1.4.1"
1212
secrets:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1413
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1514
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
1615
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
static-analysis:
1414
name: "Static Analysis"
15-
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.2.0"
15+
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.4.1"
1616
with:
1717
composer-root-version: "1.4"
18-
php-version: "7.4"
18+
php-version: "8.1"

composer.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"require-dev": {
2222
"ext-phar": "*",
2323
"ext-pdo": "*",
24-
"doctrine/coding-standard": "^8.0",
25-
"phpbench/phpbench": "^0.13 || 1.0.0-alpha2",
26-
"phpstan/phpstan": "^0.12",
27-
"phpstan/phpstan-phpunit": "^0.12",
28-
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
29-
"vimeo/psalm": "^4.11"
24+
"doctrine/coding-standard": "^9",
25+
"phpbench/phpbench": "^0.16 || ^1",
26+
"phpstan/phpstan": "^1.4",
27+
"phpstan/phpstan-phpunit": "^1",
28+
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
29+
"vimeo/psalm": "^4.22"
3030
},
3131
"autoload": {
3232
"psr-4": {
@@ -39,5 +39,10 @@
3939
"DoctrineTest\\InstantiatorTest\\": "tests",
4040
"DoctrineTest\\InstantiatorTestAsset\\": "tests"
4141
}
42+
},
43+
"config": {
44+
"allow-plugins": {
45+
"dealerdirect/phpcodesniffer-composer-installer": true
46+
}
4247
}
4348
}

phpbench.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"bootstrap": "vendor/autoload.php",
3-
"path": "tests/DoctrineTest/InstantiatorPerformance"
2+
"runner.bootstrap": "vendor/autoload.php",
3+
"runner.path": "tests/DoctrineTest/InstantiatorPerformance"
44
}

phpcs.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<!-- Ignore warnings, show progress of the run and show sniff names -->
1010
<arg value="nps"/>
1111

12+
<config name="php_version" value="70100"/>
13+
1214
<file>src</file>
1315
<file>tests</file>
1416

@@ -27,7 +29,9 @@
2729
</rule>
2830

2931
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
30-
<exclude-pattern>*/src/*</exclude-pattern>
32+
<exclude-pattern>src/*</exclude-pattern>
33+
<exclude-pattern>tests/DoctrineTest/InstantiatorTestAsset/SerializableArrayObjectAsset.php</exclude-pattern>
34+
<exclude-pattern>tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php</exclude-pattern>
3135
</rule>
3236

3337
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">

phpstan.neon.dist

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ includes:
44

55
parameters:
66
level: max
7+
phpVersion: 80103
78
paths:
89
- src
910
- tests
1011

1112
ignoreErrors:
13+
# PHPStan is unable to infer the return type of unserialize() in this case.
14+
-
15+
message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T of object but returns Closure\(\): mixed\.#'
16+
path: 'src/Doctrine/Instantiator/Instantiator.php'
17+
1218
# dynamic properties confuse static analysis
1319
-
1420
message: '#Access to an undefined property object::\$foo\.#'
15-
path: '*/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php'
21+
path: 'tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php'

phpunit.xml.dist

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
<?xml version="1.0"?>
2-
<phpunit
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
34
bootstrap="./vendor/autoload.php"
45
colors="true"
56
convertErrorsToExceptions="true"
67
convertNoticesToExceptions="true"
78
convertWarningsToExceptions="true"
9+
convertDeprecationsToExceptions="true"
810
verbose="true"
911
stopOnFailure="false"
1012
processIsolation="false"
1113
backupGlobals="false"
1214
>
15+
<php>
16+
<ini name="error_reporting" value="-1" />
17+
</php>
18+
1319
<testsuite name="Doctrine\Instantiator tests">
1420
<directory>./tests/DoctrineTest/InstantiatorTest</directory>
1521
</testsuite>

0 commit comments

Comments
 (0)