Skip to content

Commit a541fb1

Browse files
committed
Fix CI
1 parent a64d7f0 commit a541fb1

File tree

13 files changed

+69
-20
lines changed

13 files changed

+69
-20
lines changed

.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@5.0.1"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.1.0"

.github/workflows/composer-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ on:
1515
jobs:
1616
composer-lint:
1717
name: "Composer Lint"
18-
uses: "doctrine/.github/.github/workflows/composer-lint.yml@5.0.1"
18+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.1.0"

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
jobs:
1515
phpunit:
1616
name: "PHPUnit"
17-
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@5.0.1"
17+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@13.1.0"
1818
with:
1919
php-versions: '["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]'
2020
secrets:

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
documentation:
1919
name: "Documentation"
20-
uses: "doctrine/.github/.github/workflows/documentation.yml@5.1.0"
20+
uses: "doctrine/.github/.github/workflows/documentation.yml@13.1.0"

.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@5.0.1"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@13.1.0"
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: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@ on:
1010
- "*.x"
1111

1212
jobs:
13-
static-analysis:
13+
phpstan:
1414
name: "Static Analysis"
15-
uses: "doctrine/.github/.github/workflows/[email protected]"
15+
uses: "doctrine/.github/.github/workflows/[email protected]"
16+
17+
psalm:
18+
name: "Psalm (PHP: 8.1)"
19+
runs-on: "ubuntu-22.04"
20+
21+
steps:
22+
- name: "Checkout code"
23+
uses: "actions/checkout@v6"
24+
25+
- name: "Install PHP"
26+
uses: "shivammathur/setup-php@v2"
27+
with:
28+
coverage: "none"
29+
php-version: "8.1"
30+
31+
- name: "Install dependencies with Composer"
32+
uses: "ramsey/composer-install@v3"
33+
with:
34+
dependency-versions: "highest"
35+
36+
- name: "Run a static analysis with vimeo/psalm"
37+
run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc)"

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "doctrine/annotations",
3-
"abandoned": true,
43
"description": "Docblock Annotations Parser",
54
"license": "MIT",
65
"type": "library",
6+
"abandoned": true,
77
"keywords": [
88
"annotations",
99
"docblock",
@@ -39,11 +39,10 @@
3939
"psr/cache": "^1 || ^2 || ^3"
4040
},
4141
"require-dev": {
42-
"doctrine/cache": "^2.0",
43-
"doctrine/coding-standard": "^10",
44-
"phpstan/phpstan": "^1.10.28",
42+
"doctrine/coding-standard": "^11.1 || ^14",
43+
"phpstan/phpstan": "^1.11 || ^2.1",
4544
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
46-
"symfony/cache": "^5.4 || ^6.4 || ^7",
45+
"symfony/cache": "^5.4 || ^6.4 || ^7.4 || ^8",
4746
"vimeo/psalm": "^4.30 || ^5.14"
4847
},
4948
"suggest": {

docs/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"doctrine/docs-builder": "^1.0"
4+
}
5+
}

phpcs.xml.dist

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@
8585
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine.MultipleUsesPerLine">
8686
<exclude-pattern>*/tests/Doctrine/Tests/Common/Annotations/Fixtures/*</exclude-pattern>
8787
</rule>
88+
<rule ref="Generic.WhiteSpace.LanguageConstructSpacing">
89+
<exclude-pattern>*/tests/Doctrine/Tests/Common/Annotations/Fixtures/*</exclude-pattern>
90+
</rule>
91+
<rule ref="Squiz.Classes.ValidClassName">
92+
<exclude-pattern>*/tests/Doctrine/Tests/Common/Annotations/Fixtures/*</exclude-pattern>
93+
</rule>
94+
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
95+
<exclude-pattern>*/tests/Doctrine/Tests/Common/Annotations/Fixtures/*</exclude-pattern>
96+
</rule>
8897

8998
<!-- https://github.com/slevomat/coding-standard/issues/1066 -->
9099
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses">

phpstan.neon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ parameters:
1414
- tests/Doctrine/Tests/Common/Annotations/ReservedKeywordsClasses.php
1515
- tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php
1616
- tests/Doctrine/Tests/DoctrineTestCase.php
17-
- tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php
1817
polluteScopeWithLoopInitialAssignments: true
1918
ignoreErrors:
2019
- '#Instantiated class Doctrine_Tests_Common_Annotations_Fixtures_ClassNoNamespaceNoComment not found#'
2120
- '#Property Doctrine\\Tests\\Common\\Annotations\\DummyClassNonAnnotationProblem::\$foo has unknown class#'
2221
- '#Call to an undefined static method PHPUnit\\Framework\\TestCase::expectExceptionMessageRegExp\(\)#'
2322

24-
# That tag is empty on purpose
25-
- '#PHPDoc tag @var has invalid value \(\)\: Unexpected token "\*/", expected type at offset 9#'
23+
-
24+
identifier: phpDoc.parseError
25+
path: tests/Doctrine/Tests/Common/Annotations/AbstractReaderTest.php

0 commit comments

Comments
 (0)