Skip to content

Commit

Permalink
Fixed notice "A non well formed numeric value encountered" in PHP 7.1 (
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich authored and mrook committed Nov 9, 2016
1 parent 9a80878 commit 4b7c20d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/phing/Phing.php
Original file line number Diff line number Diff line change
Expand Up @@ -1621,13 +1621,15 @@ private static function setIncludePaths()
* Converts shorthand notation values as returned by ini_get()
* @see http://www.php.net/ini_get
* @param string $val
* @return int|string
* @return int
*/
private static function convertShorthand($val)
{
$val = trim($val);
$last = strtolower($val[strlen($val) - 1]);

$val = (int) $val;

switch ($last) {
// The 'G' modifier is available since PHP 5.1.0
case 'g':
Expand Down

0 comments on commit 4b7c20d

Please sign in to comment.