@@ -156,7 +156,7 @@ public function _request(
156
156
array $ parameters = [],
157
157
array $ files = [],
158
158
array $ server = [],
159
- string $ content = null
159
+ ? string $ content = null
160
160
): ?string {
161
161
$ this ->clientRequest ($ method , $ uri , $ parameters , $ files , $ server , $ content );
162
162
return $ this ->_getResponseContent ();
@@ -189,7 +189,7 @@ protected function clientRequest(
189
189
array $ parameters = [],
190
190
array $ files = [],
191
191
array $ server = [],
192
- string $ content = null ,
192
+ ? string $ content = null ,
193
193
bool $ changeHistory = true
194
194
): SymfonyCrawler {
195
195
$ this ->debugSection ("Request Headers " , $ this ->headers );
@@ -280,7 +280,7 @@ public function _loadPage(
280
280
array $ parameters = [],
281
281
array $ files = [],
282
282
array $ server = [],
283
- string $ content = null
283
+ ? string $ content = null
284
284
): void {
285
285
$ this ->crawler = $ this ->clientRequest ($ method , $ uri , $ parameters , $ files , $ server , $ content );
286
286
$ this ->baseUrl = $ this ->retrieveBaseUrl ();
@@ -562,7 +562,7 @@ public function dontSeeInSource(string $raw): void
562
562
$ this ->assertPageSourceNotContains ($ raw );
563
563
}
564
564
565
- public function seeLink (string $ text , string $ url = null ): void
565
+ public function seeLink (string $ text , ? string $ url = null ): void
566
566
{
567
567
$ crawler = $ this ->getCrawler ()->selectLink ($ text );
568
568
if ($ crawler ->count () === 0 ) {
@@ -633,7 +633,7 @@ public function dontSeeCurrentUrlMatches(string $uri): void
633
633
$ this ->assertNotRegExp ($ uri , $ this ->_getCurrentUri ());
634
634
}
635
635
636
- public function grabFromCurrentUrl (string $ uri = null ): mixed
636
+ public function grabFromCurrentUrl (? string $ uri = null ): mixed
637
637
{
638
638
if (!$ uri ) {
639
639
return $ this ->_getCurrentUri ();
@@ -892,7 +892,7 @@ protected function setCheckboxBoolValues(Crawler $form, array $params): array
892
892
* form
893
893
* @param string|null $button the name of a submit button in the form
894
894
*/
895
- protected function proceedSubmitForm (Crawler $ frmCrawl , array $ params , string $ button = null ): void
895
+ protected function proceedSubmitForm (Crawler $ frmCrawl , array $ params , ? string $ button = null ): void
896
896
{
897
897
$ url = null ;
898
898
$ form = $ this ->getFormFor ($ frmCrawl );
@@ -939,7 +939,7 @@ protected function proceedSubmitForm(Crawler $frmCrawl, array $params, string $b
939
939
$ this ->forms = [];
940
940
}
941
941
942
- public function submitForm ($ selector , array $ params , string $ button = null ): void
942
+ public function submitForm ($ selector , array $ params , ? string $ button = null ): void
943
943
{
944
944
$ form = $ this ->match ($ selector )->first ();
945
945
if (count ($ form ) === 0 ) {
@@ -1374,7 +1374,7 @@ protected function debugResponse($url): void
1374
1374
$ this ->debugSection ('Response Headers ' , $ this ->getRunningClient ()->getInternalResponse ()->getHeaders ());
1375
1375
}
1376
1376
1377
- public function makeHtmlSnapshot (string $ name = null ): void
1377
+ public function makeHtmlSnapshot (? string $ name = null ): void
1378
1378
{
1379
1379
if (empty ($ name )) {
1380
1380
$ name = uniqid (date ("Y-m-d_H-i-s_ " ), true );
@@ -1487,7 +1487,7 @@ public function grabAttributeFrom($cssOrXpath, string $attribute): mixed
1487
1487
return $ nodes ->first ()->attr ($ attribute );
1488
1488
}
1489
1489
1490
- public function grabMultiple ($ cssOrXpath , string $ attribute = null ): array
1490
+ public function grabMultiple ($ cssOrXpath , ? string $ attribute = null ): array
1491
1491
{
1492
1492
$ result = [];
1493
1493
$ nodes = $ this ->match ($ cssOrXpath );
0 commit comments