You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (0 < \func_num_args() && null !== func_get_arg(0)) {
@@ -614,6 +614,14 @@ public function text(/* string $default = null, bool $normalizeWhitespace = fals
614
614
615
615
$text = $this->getNode(0)->nodeValue;
616
616
617
+
if (\func_num_args() <= 1) {
618
+
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 second "$normalizeWhitespace" argument to false to retrieve the non-normalized version of the text.', __METHOD__), E_USER_DEPRECATED);
0 commit comments