File tree 3 files changed +3
-2
lines changed
src/Symfony/Component/DomCrawler
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ DomCrawler
156
156
----------
157
157
158
158
* Add argument ` $normalizeWhitespace ` to ` Crawler::innerText() `
159
+ * Add argument ` $default ` to ` Crawler::attr() `
159
160
160
161
ExpressionLanguage
161
162
------------------
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CHANGELOG
5
5
---
6
6
7
7
* Add argument ` $normalizeWhitespace ` to ` Crawler::innerText() `
8
+ * Add argument ` $default ` to ` Crawler::attr() `
8
9
9
10
6.4
10
11
---
Original file line number Diff line number Diff line change @@ -504,9 +504,8 @@ public function children(string $selector = null): static
504
504
*
505
505
* @throws \InvalidArgumentException When current node is empty
506
506
*/
507
- public function attr (string $ attribute/* , string $default = null */ ): ?string
507
+ public function attr (string $ attribute , string $ default = null ): ?string
508
508
{
509
- $ default = \func_num_args () > 1 ? func_get_arg (1 ) : null ;
510
509
if (!$ this ->nodes ) {
511
510
if (null !== $ default ) {
512
511
return $ default ;
You can’t perform that action at this time.
0 commit comments