mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-16 03:28:56 +08:00
[minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable * Php Inspections (EA Ultimate): use constants where applicable * Php Inspections (EA Ultimate): CS * Php Inspections (EA Ultimate): address some of one-time used variables * Php Inspections (EA Ultimate): address some of performance-related findings * Php Inspections (EA Ultimate): address some of performance-related findings * Php Inspections (EA Ultimate): revert a constant usage * Php Inspections (EA Ultimate): revert sequential assignments * Php Inspections (EA Ultimate): build is green again * Php Inspections (EA Ultimate): revert array_merge tweaks * Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak * Update description [skip ci] * Php Inspections (EA Ultimate): CS
This commit is contained in:
committed by
Alexander Makarov
parent
80da46c32d
commit
1a74b3d4f8
@@ -310,7 +310,7 @@ class BaseStringHelper
|
||||
*/
|
||||
public static function normalizeNumber($value)
|
||||
{
|
||||
$value = "$value";
|
||||
$value = (string)$value;
|
||||
|
||||
$localeInfo = localeconv();
|
||||
$decimalSeparator = isset($localeInfo['decimal_point']) ? $localeInfo['decimal_point'] : null;
|
||||
|
||||
Reference in New Issue
Block a user