diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f8e36a2..ac43191 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,7 +44,7 @@ jobs: ### Deploy - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/changes/0.2.0.md b/docs/changes/0.2.0.md index d5ad7c2..b22d0b3 100644 --- a/docs/changes/0.2.0.md +++ b/docs/changes/0.2.0.md @@ -13,4 +13,5 @@ - Github Action : Roave BC Check by [@Progi1984](https://github/Progi1984) in [#9](https://github.com/PHPOffice/Math/pull/9) - Bump actions/checkout from 2 to 4 by [@dependabot](https://github/dependabot) in [#10](https://github.com/PHPOffice/Math/pull/10) - Bump actions/setup-python from 2 to 4 by [@dependabot](https://github/dependabot) in [#11](https://github.com/PHPOffice/Math/pull/11) -- Bump actions/setup-python from 4 to 5 by [@dependabot](https://github/dependabot) in [#12](https://github.com/PHPOffice/Math/pull/12) \ No newline at end of file +- Bump actions/setup-python from 4 to 5 by [@dependabot](https://github/dependabot) in [#12](https://github.com/PHPOffice/Math/pull/12) +- Bump peaceiris/actions-gh-pages from 3 to 4 by [@dependabot](https://github/dependabot) in [#12](https://github.com/PHPOffice/Math/pull/13) \ No newline at end of file diff --git a/src/Math/Reader/MathML.php b/src/Math/Reader/MathML.php index 4d50a28..653a452 100644 --- a/src/Math/Reader/MathML.php +++ b/src/Math/Reader/MathML.php @@ -19,7 +19,7 @@ class MathML implements ReaderInterface /** @var DOMDocument */ private $dom; - /** @var DOMXpath */ + /** @var DOMXPath */ private $xpath; public function read(string $content): ?Math @@ -48,7 +48,7 @@ public function read(string $content): ?Math */ protected function parseNode(?DOMNode $nodeRowElement, $parent): void { - $this->xpath = new DOMXpath($this->dom); + $this->xpath = new DOMXPath($this->dom); foreach ($this->xpath->query('*', $nodeRowElement) ?: [] as $nodeElement) { if ($parent instanceof Element\Semantics && $nodeElement instanceof DOMElement diff --git a/src/Math/Reader/OfficeMathML.php b/src/Math/Reader/OfficeMathML.php index c856023..9cc3f73 100644 --- a/src/Math/Reader/OfficeMathML.php +++ b/src/Math/Reader/OfficeMathML.php @@ -18,7 +18,7 @@ class OfficeMathML implements ReaderInterface /** @var Math */ protected $math; - /** @var DOMXpath */ + /** @var DOMXPath */ protected $xpath; /** @var string[] */ @@ -52,7 +52,7 @@ public function read(string $content): ?Math */ protected function parseNode(?DOMNode $nodeRowElement, $parent): void { - $this->xpath = new DOMXpath($this->dom); + $this->xpath = new DOMXPath($this->dom); foreach ($this->xpath->query('*', $nodeRowElement) ?: [] as $nodeElement) { $element = $this->getElement($nodeElement); $parent->add($element); diff --git a/tests/Math/Writer/MathMLTest.php b/tests/Math/Writer/MathMLTest.php index fe22f48..06aac38 100644 --- a/tests/Math/Writer/MathMLTest.php +++ b/tests/Math/Writer/MathMLTest.php @@ -95,7 +95,7 @@ public function testWriteNotImplemented(): void $math = new Math(); - $object = new class() extends Element\AbstractElement {}; + $object = new class extends Element\AbstractElement {}; $math->add($object); $writer = new MathML(); diff --git a/tests/Math/Writer/OfficeMathMLTest.php b/tests/Math/Writer/OfficeMathMLTest.php index 385e868..40060f0 100644 --- a/tests/Math/Writer/OfficeMathMLTest.php +++ b/tests/Math/Writer/OfficeMathMLTest.php @@ -70,7 +70,7 @@ public function testWriteNotImplemented(): void $math = new Math(); - $object = new class() extends Element\AbstractElement {}; + $object = new class extends Element\AbstractElement {}; $math->add($object); $writer = new OfficeMathML();