Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15b8913

Browse files
[Crawler] document $default as string|null
1 parentfbfdebc commit15b8913

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-
* @parammixed $defaultWhen provided andthe current node is empty, this value is returned and no exception is thrown
557+
* @paramstring|null $defaultThe value to return whenthe current node is empty
558558
*
559559
* @return string The node value
560560
*
561561
* @throws \InvalidArgumentException When current node is empty
562562
*/
563-
publicfunctiontext(/* $default = null */)
563+
publicfunctiontext(/*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-
* @parammixed $defaultWhen provided andthe current node is empty, this value is returned and no exception is thrown
579+
* @paramstring|null $defaultThe value to return whenthe current node is empty
580580
*
581581
* @return string The node html
582582
*
583583
* @throws \InvalidArgumentException When current node is empty
584584
*/
585-
publicfunctionhtml(/* $default = null */)
585+
publicfunctionhtml(/*string$default = null */)
586586
{
587587
if (!$this->nodes) {
588588
if (0 <\func_num_args()) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp