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 ($elementUriIsRelative && !$baseUriIsAbsolute) {
52
52
thrownew \InvalidArgumentException(sprintf('The URL of the element is relative, so you must define its base URI passing an absolute URL to the constructor of the "%s" class ("%s" was passed).', __CLASS__, $this->currentUri));
@trigger_error(sprintf('The "%s()" method will have a new "string $selector = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
540
+
@trigger_error(sprintf('The "%s()" method will have a new "string $selector = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), \E_USER_DEPRECATED);
@@ -619,7 +619,7 @@ public function text(/* string $default = null, bool $normalizeWhitespace = true
619
619
620
620
if (\func_num_args() <= 1) {
621
621
if (trim(preg_replace('/(?:\s{2,}+|[^\S ])/', '', $text)) !== $text) {
622
-
@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);
622
+
@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);
623
623
}
624
624
625
625
return$text;
@@ -1165,7 +1165,7 @@ protected function sibling($node, $siblingDir = 'nextSibling')
1165
1165
1166
1166
$currentNode = $this->getNode(0);
1167
1167
do {
1168
-
if ($node !== $currentNode && XML_ELEMENT_NODE === $node->nodeType) {
1168
+
if ($node !== $currentNode && \XML_ELEMENT_NODE === $node->nodeType) {
$this->assertEquals(['name' => '', 'type' => '', 'tmp_name' => '', 'error' => UPLOAD_ERR_NO_FILE, 'size' => 0], $field->getValue(), '->initialize() sets the value of the field to no file uploaded');
23
+
$this->assertEquals(['name' => '', 'type' => '', 'tmp_name' => '', 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0], $field->getValue(), '->initialize() sets the value of the field to no file uploaded');
24
24
25
25
$node = $this->createNode('textarea', '');
26
26
try {
@@ -48,7 +48,7 @@ public function testSetValue($method)
48
48
$field = newFileFormField($node);
49
49
50
50
$field->$method(null);
51
-
$this->assertEquals(['name' => '', 'type' => '', 'tmp_name' => '', 'error' => UPLOAD_ERR_NO_FILE, 'size' => 0], $field->getValue(), "->$method() clears the uploaded file if the value is null");
51
+
$this->assertEquals(['name' => '', 'type' => '', 'tmp_name' => '', 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0], $field->getValue(), "->$method() clears the uploaded file if the value is null");
52
52
53
53
$field->$method(__FILE__);
54
54
$value = $field->getValue();
@@ -91,9 +91,9 @@ public function testSetErrorCode()
0 commit comments