From 2eaff4a6e271982fd2c9226ea8c61b1d4748cc8b Mon Sep 17 00:00:00 2001 From: c-harris Date: Tue, 25 Oct 2016 01:21:25 +1000 Subject: [PATCH 1/4] Update .travis.yml --- .travis.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a1629ba..fe8b493 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,20 @@ language: php + php: - 5.5 - - 5.4 - - 5.3 -before_install: - - wget http://getcomposer.org/composer.phar; chmod +x composer.phar; ./composer.phar install + - 7.0 + +before_script: + - composer install +# - wget http://getcomposer.org/composer.phar +# - php composer.phar require satooshi/php-coveralls:dev-master --dev --no-progress --prefer-source + +script: + - mkdir -p build/logs + - phpunit --coverage-clover build/logs/clover.xml + +after_script: + - php vendor/bin/coveralls --exclude-no-stmt + +after_success: + - coveralls From 01b8aba83be6c2a1f245fbb3c32372071bb61305 Mon Sep 17 00:00:00 2001 From: c-harris Date: Tue, 25 Oct 2016 01:28:49 +1000 Subject: [PATCH 2/4] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9aeb771..5cb66c7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Revisiting PhpQuery -[![Build Status](https://travis-ci.org/wittiws/phpquery.png?branch=master)](https://travis-ci.org/wittiws/phpquery) +[![Build Status](https://travis-ci.org/c-harris/phpquery.svg?branch=master)](https://travis-ci.org/c-harris/phpquery) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/c-harris/phpquery/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/c-harris/phpquery/?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/c-harris/phpquery/badge.svg?branch=master)](https://coveralls.io/github/c-harris/phpquery?branch=master) ## Basic usage of this fork From 57443110a802784e84aecc48fc291fcb6318afb5 Mon Sep 17 00:00:00 2001 From: c-harris Date: Tue, 25 Oct 2016 01:29:13 +1000 Subject: [PATCH 3/4] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fe8b493..f44309f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: php php: - 5.5 - - 7.0 + - 5.6 before_script: - composer install From 98287a12a0b2ba359b2c1643e92739477d0ade48 Mon Sep 17 00:00:00 2001 From: UnitZ Date: Fri, 26 Feb 2021 22:23:25 +0300 Subject: [PATCH 4/4] Remove curly braces string access --- .gitignore | 1 + composer.json | 2 +- src/PhpQueryObject.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d1502b0..3171e94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor/ composer.lock +.idea/ \ No newline at end of file diff --git a/composer.json b/composer.json index 7395617..45396c8 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ } ], "require":{ - "php":">=5.3.3", + "php":">7.0", "sabberworm/php-css-parser":"5.1.*" }, "autoload":{ diff --git a/src/PhpQueryObject.php b/src/PhpQueryObject.php index f5e3f9f..b5b8fe7 100644 --- a/src/PhpQueryObject.php +++ b/src/PhpQueryObject.php @@ -1234,7 +1234,7 @@ protected function pseudoClasses($class) if (!$param) break; // nth-child(n+b) to nth-child(1n+b) - if ($param{0} == 'n') + if ($param[0] == 'n') $param = '1' . $param; // :nth-child(index/even/odd/equation) if ($param == 'even' || $param == 'odd')