File tree 2 files changed +5
-9
lines changed
src/Symfony/Bundle/FrameworkBundle
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1394,9 +1394,9 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode)
1394
1394
->info ('A list of SSL/TLS ciphers separated by colons, commas or spaces (e.g. "RC3-SHA:TLS13-AES-128-GCM-SHA256"...) ' )
1395
1395
->end ()
1396
1396
->scalarNode ('buffer ' )
1397
- ->info ('Response content should be buffered or not ' )
1397
+ ->info ('Whether the response content should be buffered or a regex telling which content-types should be ' )
1398
1398
->validate ()
1399
- ->ifTrue (function ($ v ) { return !\is_bool ($ v ) && (\is_string ($ v ) && false === @preg_match ($ v , '' )); })
1399
+ ->ifTrue (function ($ v ) { return !\is_bool ($ v ) && (! \is_string ($ v ) || false === @preg_match ($ v , '' )); })
1400
1400
->thenInvalid ('Buffer option should be a boolean or a valid regex ' )
1401
1401
->end ()
1402
1402
->end ()
@@ -1537,9 +1537,9 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode)
1537
1537
->info ('A list of SSL/TLS ciphers separated by colons, commas or spaces (e.g. "RC3-SHA:TLS13-AES-128-GCM-SHA256"...) ' )
1538
1538
->end ()
1539
1539
->scalarNode ('buffer ' )
1540
- ->info ('Response content should be buffered or not ' )
1540
+ ->info ('Whether the response content should be buffered or a regex telling which content-types should be ' )
1541
1541
->validate ()
1542
- ->ifTrue (function ($ v ) { return !\is_bool ($ v ) && (\is_string ($ v ) && false === @preg_match ($ v , '' )); })
1542
+ ->ifTrue (function ($ v ) { return !\is_bool ($ v ) && (! \is_string ($ v ) || false === @preg_match ($ v , '' )); })
1543
1543
->thenInvalid ('Buffer option should be a boolean or a valid regex ' )
1544
1544
->end ()
1545
1545
->end ()
Original file line number Diff line number Diff line change 503
503
<xsd : attribute name =" local-pk" type =" xsd:string" />
504
504
<xsd : attribute name =" passphrase" type =" xsd:string" />
505
505
<xsd : attribute name =" ciphers" type =" xsd:string" />
506
- <xsd : attribute name =" buffer" >
507
- <xsd : simpleType >
508
- <xsd : union memberTypes =" xsd:string xsd:boolean" />
509
- </xsd : simpleType >
510
- </xsd : attribute >
506
+ <xsd : attribute name =" buffer" type =" xsd:string" />
511
507
512
508
</xsd : complexType >
513
509
You can’t perform that action at this time.
0 commit comments