Skip to content

Commit 9e5442a

Browse files
authored
Merge pull request #12251 from doctrine/3.5.x
Merge 3.5.x up into 3.6.x
2 parents 01774c0 + 7d8e51c commit 9e5442a

File tree

60 files changed

+756
-243
lines changed

Some content is hidden

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

60 files changed

+756
-243
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ on:
2424

2525
jobs:
2626
coding-standards:
27-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@10.1.0"
27+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@12.1.0"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Composer Lint"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*.x"
7+
paths:
8+
- ".github/workflows/composer-lint.yml"
9+
- "composer.json"
10+
push:
11+
branches:
12+
- "*.x"
13+
paths:
14+
- ".github/workflows/composer-lint.yml"
15+
- "composer.json"
16+
17+
jobs:
18+
composer-lint:
19+
name: "Composer Lint"
20+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@12.1.0"

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
ENABLE_NATIVE_LAZY_OBJECTS: ${{ matrix.native_lazy }}
140140

141141
- name: "Upload coverage file"
142-
uses: "actions/upload-artifact@v4"
142+
uses: "actions/upload-artifact@v5"
143143
with:
144144
name: "phpunit-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-${{ matrix.deps }}-${{ matrix.stability }}-${{ matrix.native_lazy }}-coverage"
145145
path: "coverage*.xml"
@@ -248,7 +248,7 @@ jobs:
248248
run: "vendor/bin/phpunit -c ci/github/phpunit/pdo_pgsql.xml --coverage-clover=coverage.xml"
249249

250250
- name: "Upload coverage file"
251-
uses: "actions/upload-artifact@v4"
251+
uses: "actions/upload-artifact@v5"
252252
with:
253253
name: "${{ github.job }}-${{ matrix.postgres-version }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-${{ matrix.extension }}-coverage"
254254
path: "coverage.xml"
@@ -316,7 +316,7 @@ jobs:
316316
run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml --coverage-clover=coverage.xml"
317317

318318
- name: "Upload coverage file"
319-
uses: "actions/upload-artifact@v4"
319+
uses: "actions/upload-artifact@v5"
320320
with:
321321
name: "${{ github.job }}-${{ matrix.mariadb-version }}-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-coverage"
322322
path: "coverage.xml"
@@ -413,7 +413,7 @@ jobs:
413413
ENABLE_SECOND_LEVEL_CACHE: 1
414414

415415
- name: "Upload coverage files"
416-
uses: "actions/upload-artifact@v4"
416+
uses: "actions/upload-artifact@v5"
417417
with:
418418
name: "${{ github.job }}-${{ matrix.mysql-version }}-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-coverage"
419419
path: "coverage*.xml"
@@ -436,7 +436,7 @@ jobs:
436436
fetch-depth: 2
437437

438438
- name: "Download coverage files"
439-
uses: "actions/download-artifact@v5"
439+
uses: "actions/download-artifact@v6"
440440
with:
441441
path: "reports"
442442

.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@10.1.0"
20+
uses: "doctrine/.github/.github/workflows/documentation.yml@12.1.0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@10.1.0"
10+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@12.1.0"
1111
secrets:
1212
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1313
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

composer.json

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
11
{
22
"name": "doctrine/orm",
3-
"type": "library",
43
"description": "Object-Relational-Mapper for PHP",
5-
"keywords": ["orm", "database"],
6-
"homepage": "https://www.doctrine-project.org/projects/orm.html",
74
"license": "MIT",
8-
"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": "Marco Pivetta", "email": "ocramius@gmail.com"}
5+
"type": "library",
6+
"keywords": [
7+
"orm",
8+
"database"
149
],
15-
"config": {
16-
"allow-plugins": {
17-
"composer/package-versions-deprecated": true,
18-
"dealerdirect/phpcodesniffer-composer-installer": true,
19-
"phpstan/extension-installer": true
10+
"authors": [
11+
{
12+
"name": "Guilherme Blanco",
13+
"email": "guilhermeblanco@gmail.com"
2014
},
21-
"sort-packages": true
22-
},
15+
{
16+
"name": "Roman Borschel",
17+
"email": "roman@code-factory.org"
18+
},
19+
{
20+
"name": "Benjamin Eberlei",
21+
"email": "kontakt@beberlei.de"
22+
},
23+
{
24+
"name": "Jonathan Wage",
25+
"email": "jonwage@gmail.com"
26+
},
27+
{
28+
"name": "Marco Pivetta",
29+
"email": "ocramius@gmail.com"
30+
}
31+
],
32+
"homepage": "https://www.doctrine-project.org/projects/orm.html",
2333
"require": {
2434
"php": "^8.1",
25-
"composer-runtime-api": "^2",
2635
"ext-ctype": "*",
36+
"composer-runtime-api": "^2",
2737
"doctrine/collections": "^2.2",
2838
"doctrine/dbal": "^3.8.2 || ^4",
2939
"doctrine/deprecations": "^0.5.3 || ^1",
@@ -52,16 +62,26 @@
5262
"symfony/cache": "Provides cache support for Setup Tool with doctrine/cache 2.0"
5363
},
5464
"autoload": {
55-
"psr-4": { "Doctrine\\ORM\\": "src" }
65+
"psr-4": {
66+
"Doctrine\\ORM\\": "src"
67+
}
5668
},
5769
"autoload-dev": {
5870
"psr-4": {
59-
"Doctrine\\Tests\\": "tests/Tests",
71+
"Doctrine\\Performance\\": "tests/Performance",
6072
"Doctrine\\StaticAnalysis\\": "tests/StaticAnalysis",
61-
"Doctrine\\Performance\\": "tests/Performance"
73+
"Doctrine\\Tests\\": "tests/Tests"
6274
}
6375
},
64-
"archive": {
65-
"exclude": ["!vendor", "tests", "*phpunit.xml", "build.xml", "build.properties", "composer.phar", "vendor/satooshi", "lib/vendor", "*.swp"]
76+
"config": {
77+
"allow-plugins": {
78+
"composer/package-versions-deprecated": true,
79+
"dealerdirect/phpcodesniffer-composer-installer": true,
80+
"phpstan/extension-installer": true
81+
},
82+
"sort-packages": true
83+
},
84+
"scripts": {
85+
"docs": "composer --working-dir docs update && ./docs/vendor/bin/build-docs.sh @additional_args"
6686
}
6787
}

docs/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
composer.lock
22
vendor/
3-
build/
3+
output/

docs/Makefile

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ The documentation is written in [ReStructured Text](https://docutils.sourceforge
44

55
## How to Generate:
66

7-
In the `docs/` folder, run
7+
In the project root, run
88

9-
composer update
9+
composer docs
1010

11-
Then compile the documentation with:
12-
13-
make html
14-
15-
This will generate the documentation into the `build` subdirectory.
11+
This will generate the documentation into the `docs/output` subdirectory.
1612

1713
To browse the documentation, you need to run a webserver:
1814

19-
cd build/html
15+
cd docs/output
2016
php -S localhost:8000
2117

2218
Now the documentation is available at [http://localhost:8000](http://localhost:8000).

docs/composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Documentation for the Object-Relational Mapper\"",
44
"type": "library",
55
"license": "MIT",
6-
"require": {
7-
"phpdocumentor/guides-cli": "1.7.1",
8-
"phpdocumentor/filesystem": "1.7.1"
6+
"require-dev": {
7+
"doctrine/docs-builder": "^1.0"
98
}
109
}

0 commit comments

Comments
 (0)