Skip to content

Commit 1fae87d

Browse files
authored
Merge pull request #4 from roalvesrj/master
Corrigindo compatibilidade com PHP 7.4.*
2 parents efd7f8d + ab31a54 commit 1fae87d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PhpQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ abstract class PhpQuery {
117117
public static $enableCssShorthand = FALSE;
118118

119119
public static function use_function($ns = '\\', $func = 'pq') {
120-
if ($ns{0} !== '\\') {
120+
if ($ns[0] !== '\\') {
121121
$ns = '\\' . $ns;
122122
}
123123
if (!function_exists($ns . '\\' . $func)) {

src/PhpQueryObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ protected function pseudoClasses($class) {
10941094
if (!$param)
10951095
break;
10961096
// nth-child(n+b) to nth-child(1n+b)
1097-
if ($param{0} == 'n')
1097+
if ($param[0] == 'n')
10981098
$param = '1' . $param;
10991099
// :nth-child(index/even/odd/equation)
11001100
if ($param == 'even' || $param == 'odd')

0 commit comments

Comments
 (0)