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

zumba / swivel / 133
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v2.1.3
DEFAULT BRANCH: master
Ran 29 Aug 2017 06:53PM UTC
Jobs 3
Files 14
Run time 11min
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
133

Pull #34

travis-ci

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

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 #34: php7.1: fix non-numeric value encountered warning

182 of 183 relevant lines covered (99.45%)

82.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 133.1 29 Aug 2017 06:53PM UTC 0
99.45
Travis Job 133.1
2 133.2 29 Aug 2017 06:53PM UTC 0
99.45
Travis Job 133.2
5 133.5 29 Aug 2017 06:53PM UTC 0
100.0
Travis Job 133.5
Source Files on build 133
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #133
  • Pull Request #34
  • PR Base - v1.3 (#131)
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