File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Symfony/Component/DomCrawler Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -554,13 +554,13 @@ public function nodeName()
554
554
/**
555
555
* Returns the node value of the first node of the list.
556
556
*
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
558
558
*
559
559
* @return string The node value
560
560
*
561
561
* @throws \InvalidArgumentException When current node is empty
562
562
*/
563
- public function text (/* $default = null */ )
563
+ public function text (/* string $default = null */ )
564
564
{
565
565
if (!$ this ->nodes ) {
566
566
if (0 < \func_num_args ()) {
@@ -576,13 +576,13 @@ public function text(/* $default = null */)
576
576
/**
577
577
* Returns the first node of the list as HTML.
578
578
*
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
580
580
*
581
581
* @return string The node html
582
582
*
583
583
* @throws \InvalidArgumentException When current node is empty
584
584
*/
585
- public function html (/* $default = null */ )
585
+ public function html (/* string $default = null */ )
586
586
{
587
587
if (!$ this ->nodes ) {
588
588
if (0 < \func_num_args ()) {
You can’t perform that action at this time.
0 commit comments