• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zumba / swivel / 137
99%

Build:
DEFAULT BRANCH: master
Ran 30 Aug 2017 05:54PM UTC
Jobs 1
Files 14
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
137

Pull #36

travis-ci

web-flow
php7.1: fix non-numeric value encounted warning

Same fix was made to v1.3 branch. This is for master. See below for
details:

Some swivels can return empty string, and we can't perform bitwise & on
non-numeric values on 7.1 without getting a warning.

php 7.1 (adding cast eliminates the warning):
```
$ php --version
PHP 7.1.8-2+ubuntu16.04.1+deb.sury.org+4 (cli) (built: Aug  4 2017 13:04:12) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.8-2+ubuntu16.04.1+deb.sury.org+4, Copyright (c) 1999-2017, by Zend Technologies

$ php -r 'var_dump("" & 0);'
PHP Warning:  A non-numeric value encountered in Command line code on line 1
int(0)
$ php -r 'var_dump((int)"" & 0);'
int(0)
```

php 5.6 (doesn't require the cast):
```
$ php --version
PHP 5.6.31-4+ubuntu16.04.1+deb.sury.org+4 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

$ php -r 'var_dump("" & 0);'
int(0)
$ php -r 'var_dump((int)"" & 0);'
int(0)
```

Signed-off-by: Rene Fragoso <ctrlrsf@gmail.com>
Pull Request #36: php7.1: fix non-numeric value encounted warning

188 of 189 relevant lines covered (99.47%)

28.8 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/Builder.php
Jobs
ID Job ID Ran Files Coverage
4 137.4 30 Aug 2017 05:54PM UTC 0
99.47
Travis Job 137.4
Source Files on build 137
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #137
  • Pull Request #36
  • PR Base - master (#129)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc