@@ -189,7 +189,7 @@ class QueryPath
189189 * @see qp()
190190 * @see htmlqp()
191191 */
192- public static function with ($ document = null , $ selector = '' , array $ options = [])
192+ public static function with ($ document = null , $ selector = null , array $ options = [])
193193 {
194194 $ qpClass = $ options ['QueryPath_class ' ] ?? '\QueryPath\DOMQuery ' ;
195195
@@ -205,7 +205,7 @@ public static function with($document = null, $selector = '', array $options = [
205205 *
206206 * @see qp()
207207 */
208- public static function withXML ($ source = null , $ selector = '' , array $ options = [])
208+ public static function withXML ($ source = null , $ selector = null , array $ options = [])
209209 {
210210 $ options += [
211211 'use_parser ' => 'xml ' ,
@@ -223,7 +223,7 @@ public static function withXML($source = null, $selector = '', array $options =
223223 *
224224 * @see htmlqp()
225225 */
226- public static function withHTML ($ source = null , $ selector = '' , array $ options = [])
226+ public static function withHTML ($ source = null , $ selector = null , array $ options = [])
227227 {
228228 // Need a way to force an HTML parse instead of an XML parse when the
229229 // doctype is XHTML, since many XHTML documents are not valid XML
@@ -273,7 +273,7 @@ public static function withHTML($source = null, $selector = '', array $options =
273273 *
274274 * @see html5qp()
275275 */
276- public static function withHTML5 ($ source = null , $ selector = '' , array $ options = [])
276+ public static function withHTML5 ($ source = null , $ selector = null , array $ options = [])
277277 {
278278 $ qpClass = $ options ['QueryPath_class ' ] ?? '\QueryPath\DOMQuery ' ;
279279
0 commit comments