From 33fae2e1cfba30cd1af87de3764cca81fe60096a Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Wed, 8 May 2024 08:50:58 +0200 Subject: [PATCH 1/3] Remove failing build docs workflow --- .github/workflows/docs.yml | 60 -------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index a7a1413a8..000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: "Docs" - -on: - pull_request: - branches: - - "v*.*" - - "master" - - "feature/*" - paths: - - "docs/**" - push: - branches: - - "v*.*" - - "master" - - "feature/*" - paths: - - "docs/**" - -jobs: - giza: - name: "Build Docs" - runs-on: "ubuntu-20.04" - - steps: - - name: "Checkout library" - uses: "actions/checkout@v3" - with: - path: library - fetch-depth: 2 - - - name: "Checkout docs" - uses: "actions/checkout@v3" - with: - repository: mongodb/docs-php-library - path: docs - fetch-depth: 2 - - - name: "Setup python" - uses: actions/setup-python@v4 - with: - python-version: '2.7' - - # The requirements file installs urllib3 with an incompatible version; we replace it with one that works - - name: "Install giza" - run: | - pip install -r https://raw.githubusercontent.com/mongodb/docs-tools/master/giza/requirements.txt - pip install urllib3==1.25.2 - - - name: "Sync documentation" - run: "rsync -a library/docs/ docs/source/" - - - name: "Run Giza" - run: "giza make publish" - working-directory: docs - - - name: "Upload built documentation" - uses: actions/upload-artifact@v3 - with: - name: php-library-docs.tar.gz - path: docs/build/public/master/php-library.tar.gz From 6bdc8e2bc90583ab2a64fd47cab36771904b2026 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Wed, 8 May 2024 08:51:08 +0200 Subject: [PATCH 2/3] Run static analysis for docs to satisfy required checks --- .github/workflows/static-analysis.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8f9c45019..cc0668d7f 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -6,15 +6,11 @@ on: - "v*.*" - "master" - "feature/*" - paths-ignore: - - "docs/**" push: branches: - "v*.*" - "master" - "feature/*" - paths-ignore: - - "docs/**" env: PHP_VERSION: "8.2" From 55ad2c0dc4f6d8289c0ab5023986c2d85c4cdb56 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Wed, 8 May 2024 09:00:49 +0200 Subject: [PATCH 3/3] Fix checkstyle violation --- src/GridFS/ReadableStream.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/GridFS/ReadableStream.php b/src/GridFS/ReadableStream.php index 7c3d8be4b..3c9f91641 100644 --- a/src/GridFS/ReadableStream.php +++ b/src/GridFS/ReadableStream.php @@ -106,7 +106,6 @@ public function __construct(CollectionWrapper $collectionWrapper, object $file) * Return internal properties for debugging purposes. * * @see https://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo - * @return array */ public function __debugInfo(): array {