PHPCompatibility/Sniffs/PHP/NewIniDirectivesSniff.php 1 location
|
@@ 570-572 (lines=3) @@
|
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
// Lower error level to warning if the function used was ini_get. |
| 570 |
|
if ($errorInfo['error'] === true && $itemInfo['functionLc'] === 'ini_get') { |
| 571 |
|
$errorInfo['error'] = false; |
| 572 |
|
} |
| 573 |
|
|
| 574 |
|
return $errorInfo; |
| 575 |
|
} |
PHPCompatibility/Sniffs/PHP/DeprecatedIniDirectivesSniff.php 1 location
|
@@ 308-310 (lines=3) @@
|
| 305 |
|
$errorInfo = parent::getErrorInfo($itemArray, $itemInfo); |
| 306 |
|
|
| 307 |
|
// Lower error level to warning if the function used was ini_get. |
| 308 |
|
if ($errorInfo['error'] === true && $itemInfo['functionLc'] === 'ini_get') { |
| 309 |
|
$errorInfo['error'] = false; |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
return $errorInfo; |
| 313 |
|
} |