Skip to content

Commit 0516a76

Browse files
authored
/build/gen_stub.php: typo fix from 'seperate' to 'separate' (#21505)
1 parent 8f9a8c0 commit 0516a76

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build/gen_stub.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ private function generateRefSect1(DOMDocument $doc, string $role): DOMElement {
16441644
}
16451645

16461646
public function getMethodSynopsisDocument(): ?string {
1647-
$REFSEC1_SEPERATOR = "\n\n ";
1647+
$REFSEC1_SEPARATOR = "\n\n ";
16481648

16491649
$doc = new DOMDocument("1.0", "utf-8");
16501650
$doc->formatOutput = true;
@@ -1654,7 +1654,7 @@ public function getMethodSynopsisDocument(): ?string {
16541654

16551655
if ($this->isMethod()) {
16561656
assert($this->name instanceof MethodName);
1657-
/* Namespaces are seperated by '-', '_' must be converted to '-' too.
1657+
/* Namespaces are separated by '-', '_' must be converted to '-' too.
16581658
* Trim away the __ for magic methods */
16591659
$id = strtolower(
16601660
str_replace('\\', '-', $this->name->className->__toString())
@@ -1683,7 +1683,7 @@ public function getMethodSynopsisDocument(): ?string {
16831683
$refnamediv->appendChild($refpurpose);
16841684

16851685
$refnamediv->appendChild(new DOMText("\n "));
1686-
$refentry->append($refnamediv, $REFSEC1_SEPERATOR);
1686+
$refentry->append($refnamediv, $REFSEC1_SEPARATOR);
16871687

16881688
/* Creation of <refsect1 role="description"> */
16891689
$descriptionRefSec = $this->generateRefSect1($doc, 'description');
@@ -1702,16 +1702,16 @@ public function getMethodSynopsisDocument(): ?string {
17021702
$descriptionRefSec->appendChild($returnDescriptionPara);
17031703

17041704
$descriptionRefSec->appendChild(new DOMText("\n "));
1705-
$refentry->append($descriptionRefSec, $REFSEC1_SEPERATOR);
1705+
$refentry->append($descriptionRefSec, $REFSEC1_SEPARATOR);
17061706

17071707
/* Creation of <refsect1 role="parameters"> */
17081708
$parametersRefSec = $this->getParameterSection($doc);
1709-
$refentry->append($parametersRefSec, $REFSEC1_SEPERATOR);
1709+
$refentry->append($parametersRefSec, $REFSEC1_SEPARATOR);
17101710

17111711
/* Creation of <refsect1 role="returnvalues"> */
17121712
if (!$this->name->isConstructor() && !$this->name->isDestructor()) {
17131713
$returnRefSec = $this->getReturnValueSection($doc);
1714-
$refentry->append($returnRefSec, $REFSEC1_SEPERATOR);
1714+
$refentry->append($returnRefSec, $REFSEC1_SEPARATOR);
17151715
}
17161716

17171717
/* Creation of <refsect1 role="errors"> */
@@ -1731,14 +1731,14 @@ public function getMethodSynopsisDocument(): ?string {
17311731
$errorsRefSec->appendChild($errorsDescriptionPara);
17321732
$errorsRefSec->appendChild(new DOMText("\n "));
17331733

1734-
$refentry->append($errorsRefSec, $REFSEC1_SEPERATOR);
1734+
$refentry->append($errorsRefSec, $REFSEC1_SEPARATOR);
17351735

17361736
/* Creation of <refsect1 role="changelog"> */
17371737
$changelogRefSec = $this->getChangelogSection($doc);
1738-
$refentry->append($changelogRefSec, $REFSEC1_SEPERATOR);
1738+
$refentry->append($changelogRefSec, $REFSEC1_SEPARATOR);
17391739

17401740
$exampleRefSec = $this->getExampleSection($doc, $id);
1741-
$refentry->append($exampleRefSec, $REFSEC1_SEPERATOR);
1741+
$refentry->append($exampleRefSec, $REFSEC1_SEPARATOR);
17421742

17431743
/* Creation of <refsect1 role="notes"> */
17441744
$notesRefSec = $this->generateRefSect1($doc, 'notes');
@@ -1751,7 +1751,7 @@ public function getMethodSynopsisDocument(): ?string {
17511751
$noteTag->append("\n ", $noteTagSimara, "\n ");
17521752
$notesRefSec->append($noteTag, "\n ");
17531753

1754-
$refentry->append($notesRefSec, $REFSEC1_SEPERATOR);
1754+
$refentry->append($notesRefSec, $REFSEC1_SEPARATOR);
17551755

17561756
/* Creation of <refsect1 role="seealso"> */
17571757
$seeAlsoRefSec = $this->generateRefSect1($doc, 'seealso');

0 commit comments

Comments
 (0)