Skip to content

Commit f6d8560

Browse files
committed
Replace 2nd by second
1 parent 58490e5 commit f6d8560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public function nodeName()
593593
/**
594594
* Returns the text of the first node of the list.
595595
*
596-
* Pass true as the 2nd argument to normalize whitespaces.
596+
* Pass true as the second argument to normalize whitespaces.
597597
*
598598
* @param string|null $default When not null: the value to return when the current node is empty
599599
* @param bool $normalizeWhitespace Whether whitespaces should be trimmed and normalized to single spaces
@@ -616,7 +616,7 @@ public function text(/* string $default = null, bool $normalizeWhitespace = true
616616

617617
if (\func_num_args() <= 1) {
618618
if (trim(preg_replace('/(?:\s{2,}+|[^\S ])/', ' ', $text)) !== $text) {
619-
@trigger_error(sprintf('"%s()" will normalize whitespaces by default in Symfony 5.0, set the 2nd "$normalizeWhitespace" argument to false to retrieve the non-normalized version of the text.', __METHOD__), E_USER_DEPRECATED);
619+
@trigger_error(sprintf('"%s()" will normalize whitespaces by default in Symfony 5.0, set the second "$normalizeWhitespace" argument to false to retrieve the non-normalized version of the text.', __METHOD__), E_USER_DEPRECATED);
620620
}
621621

622622
return $text;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy