Skip to content

Commit e4fabab

Browse files
[Crawler] document $default as string|null
1 parent fbfdebc commit e4fabab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,13 +554,13 @@ public function nodeName()
554554
/**
555555
* Returns the node value of the first node of the list.
556556
*
557-
* @param mixed $default When provided and the current node is empty, this value is returned and no exception is thrown
557+
* @param string|null $default When provided and the current node is empty, this value is returned and no exception is thrown
558558
*
559559
* @return string The node value
560560
*
561561
* @throws \InvalidArgumentException When current node is empty
562562
*/
563-
public function text(/* $default = null */)
563+
public function text(/* string $default = null */)
564564
{
565565
if (!$this->nodes) {
566566
if (0 < \func_num_args()) {
@@ -576,13 +576,13 @@ public function text(/* $default = null */)
576576
/**
577577
* Returns the first node of the list as HTML.
578578
*
579-
* @param mixed $default When provided and the current node is empty, this value is returned and no exception is thrown
579+
* @param string|null $default When provided and the current node is empty, this value is returned and no exception is thrown
580580
*
581581
* @return string The node html
582582
*
583583
* @throws \InvalidArgumentException When current node is empty
584584
*/
585-
public function html(/* $default = null */)
585+
public function html(/* string $default = null */)
586586
{
587587
if (!$this->nodes) {
588588
if (0 < \func_num_args()) {

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