Closed turboflash closed 9 years ago
So I'm thinking just doing something like this:
if ($parts[0] == '') {
array_shift($parts)
}
That would fix the use case, and hopefully stay backward compatible. See any issues with that?
Nope. That resolves the issue. ;)
I hit into the subject error and I did some quick investigation on why it occurs. It seems the issue happens in the autoload code below.
$klass
was assigned'\QueryPath\DOMQuery'
when the function is called. After exploding$klass
into$parts
, the following is the resulting array.require $path
would not be executed as$parts[0]
is not equal to'QueryPath'
.