We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents efd7f8d + ab31a54 commit 1fae87dCopy full SHA for 1fae87d
src/PhpQuery.php
@@ -117,7 +117,7 @@ abstract class PhpQuery {
117
public static $enableCssShorthand = FALSE;
118
119
public static function use_function($ns = '\\', $func = 'pq') {
120
- if ($ns{0} !== '\\') {
+ if ($ns[0] !== '\\') {
121
$ns = '\\' . $ns;
122
}
123
if (!function_exists($ns . '\\' . $func)) {
src/PhpQueryObject.php
@@ -1094,7 +1094,7 @@ protected function pseudoClasses($class) {
1094
if (!$param)
1095
break;
1096
// nth-child(n+b) to nth-child(1n+b)
1097
- if ($param{0} == 'n')
+ if ($param[0] == 'n')
1098
$param = '1' . $param;
1099
// :nth-child(index/even/odd/equation)
1100
if ($param == 'even' || $param == 'odd')
0 commit comments