Skip to content

Commit

Permalink
Merge pull request #138 from toscan/patch-1
Browse files Browse the repository at this point in the history
Fix php 7.1 notice
  • Loading branch information
moufmouf committed Mar 2, 2017
2 parents fdd33ba + 32aad75 commit e7ccf83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mouf/Validator/SettingsValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static function validateClass() {
private static function return_bytes($val) {
$val = trim($val);
$last = strtolower($val[strlen($val)-1]);
$val = (int) $val;
switch($last) {
// Le modifieur 'G' est disponible depuis PHP 5.1.0
case 'g':
Expand All @@ -71,4 +72,4 @@ private static function return_bytes($val) {

return $val;
}
}
}

0 comments on commit e7ccf83

Please sign in to comment.