Skip to content

Commit e6238f0

Browse files
authored
Merge pull request php-amqplib#652 from ramunasd/hhvm_cleanup
Remove workarounds for hhvm, use latest version of scrutinizer tool
2 parents 5a71b02 + 75430d6 commit e6238f0

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ matrix:
1717
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
1818
sudo: false
1919

20-
# required to test HHVM
21-
# see https://travis-ci.org/php-amqplib/php-amqplib/jobs/259347861
22-
dist: trusty
23-
2420
cache:
2521
directories:
2622
- $HOME/.composer
@@ -33,7 +29,8 @@ script:
3329
- vendor/bin/phpunit -d zend.enable_gc=0 --coverage-text --coverage-clover=coverage.clover
3430

3531
after_script:
36-
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
32+
- wget https://scrutinizer-ci.com/ocular.phar
33+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
3734

3835
services:
3936
rabbitmq

PhpAmqpLib/Wire/IO/SocketIO.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ public function select($sec, $usec)
213213
$read = array($this->sock);
214214
$write = null;
215215
$except = null;
216-
$result = false;
217216

218217
$this->set_error_handler();
219218
try {

PhpAmqpLib/Wire/IO/StreamIO.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,6 @@ public function select($sec, $usec)
459459
$read = array($this->sock);
460460
$write = null;
461461
$except = null;
462-
$result = false;
463-
464-
if (defined('HHVM_VERSION')) {
465-
$usec = is_int($usec) ? $usec : 0;
466-
}
467462

468463
$this->set_error_handler();
469464
try {

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
},
3636
"require-dev": {
3737
"phpunit/phpunit": "^4.8",
38-
"scrutinizer/ocular": "^1.1",
3938
"squizlabs/php_codesniffer": "^2.5",
4039
"phpdocumentor/phpdocumentor": "^2.9"
4140
},

0 commit comments

Comments
 (0)