From e76538bb6d9117e35478b2bfe51956d69002cdea Mon Sep 17 00:00:00 2001 From: Mike Stupalov Date: Thu, 2 Nov 2023 13:51:24 +0300 Subject: [PATCH] Reduce minimum php to 7.2 for UnitTests. --- tests/PhysicalQuantity/AbstractPhysicalQuantityTestCase.php | 2 +- tests/PhysicalQuantity/AccelerationTest.php | 2 +- tests/PhysicalQuantity/AngleTest.php | 2 +- tests/PhysicalQuantity/AreaTest.php | 2 +- tests/PhysicalQuantity/ElectricCurrentTest.php | 2 +- tests/PhysicalQuantity/EnergyTest.php | 2 +- tests/PhysicalQuantity/LengthTest.php | 2 +- tests/PhysicalQuantity/LuminousIntensityTest.php | 2 +- tests/PhysicalQuantity/MassTest.php | 2 +- tests/PhysicalQuantity/PowerTest.php | 2 +- tests/PhysicalQuantity/PressureTest.php | 2 +- tests/PhysicalQuantity/QuantityTest.php | 2 +- tests/PhysicalQuantity/SolidAngleTest.php | 2 +- tests/PhysicalQuantity/TemperatureTest.php | 2 +- tests/PhysicalQuantity/TimeTest.php | 2 +- tests/PhysicalQuantity/VelocityTest.php | 2 +- tests/PhysicalQuantity/VolumeFlowTest.php | 2 +- tests/PhysicalQuantity/VolumeTest.php | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/PhysicalQuantity/AbstractPhysicalQuantityTestCase.php b/tests/PhysicalQuantity/AbstractPhysicalQuantityTestCase.php index d956eb3..76b0ea0 100644 --- a/tests/PhysicalQuantity/AbstractPhysicalQuantityTestCase.php +++ b/tests/PhysicalQuantity/AbstractPhysicalQuantityTestCase.php @@ -10,7 +10,7 @@ */ abstract class AbstractPhysicalQuantityTestCase extends TestCase { - protected array $supportedUnitsWithAliases = []; + protected $supportedUnitsWithAliases = []; /** * Verify that the object instantiates without error. diff --git a/tests/PhysicalQuantity/AccelerationTest.php b/tests/PhysicalQuantity/AccelerationTest.php index 76bf800..7a891f4 100644 --- a/tests/PhysicalQuantity/AccelerationTest.php +++ b/tests/PhysicalQuantity/AccelerationTest.php @@ -7,7 +7,7 @@ class AccelerationTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'm/s^2', 'm/s²', 'meter per second squared', diff --git a/tests/PhysicalQuantity/AngleTest.php b/tests/PhysicalQuantity/AngleTest.php index 281c9d2..3d43286 100644 --- a/tests/PhysicalQuantity/AngleTest.php +++ b/tests/PhysicalQuantity/AngleTest.php @@ -7,7 +7,7 @@ class AngleTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'rad', 'radian', 'radians', diff --git a/tests/PhysicalQuantity/AreaTest.php b/tests/PhysicalQuantity/AreaTest.php index 951b1e1..cd5ca1d 100644 --- a/tests/PhysicalQuantity/AreaTest.php +++ b/tests/PhysicalQuantity/AreaTest.php @@ -7,7 +7,7 @@ class AreaTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'm^2', 'm²', 'meter squared', diff --git a/tests/PhysicalQuantity/ElectricCurrentTest.php b/tests/PhysicalQuantity/ElectricCurrentTest.php index 0c3d65a..e521a80 100644 --- a/tests/PhysicalQuantity/ElectricCurrentTest.php +++ b/tests/PhysicalQuantity/ElectricCurrentTest.php @@ -7,7 +7,7 @@ class ElectricCurrentTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'A', 'amp', 'amps', diff --git a/tests/PhysicalQuantity/EnergyTest.php b/tests/PhysicalQuantity/EnergyTest.php index bbbba7f..c0c9125 100644 --- a/tests/PhysicalQuantity/EnergyTest.php +++ b/tests/PhysicalQuantity/EnergyTest.php @@ -7,7 +7,7 @@ class EnergyTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'Wh', 'watt hour', 'watt hours', diff --git a/tests/PhysicalQuantity/LengthTest.php b/tests/PhysicalQuantity/LengthTest.php index 4a7dae0..1b8912a 100644 --- a/tests/PhysicalQuantity/LengthTest.php +++ b/tests/PhysicalQuantity/LengthTest.php @@ -7,7 +7,7 @@ class LengthTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'm', 'meter', 'meters', diff --git a/tests/PhysicalQuantity/LuminousIntensityTest.php b/tests/PhysicalQuantity/LuminousIntensityTest.php index b62ba6d..1bcbfde 100644 --- a/tests/PhysicalQuantity/LuminousIntensityTest.php +++ b/tests/PhysicalQuantity/LuminousIntensityTest.php @@ -7,7 +7,7 @@ class LuminousIntensityTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'cd', 'candela', 'Ycd', diff --git a/tests/PhysicalQuantity/MassTest.php b/tests/PhysicalQuantity/MassTest.php index 6936fda..91b3a92 100644 --- a/tests/PhysicalQuantity/MassTest.php +++ b/tests/PhysicalQuantity/MassTest.php @@ -7,7 +7,7 @@ class MassTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'kg', 'kilogram', 'kilograms', diff --git a/tests/PhysicalQuantity/PowerTest.php b/tests/PhysicalQuantity/PowerTest.php index 455fd5d..b490435 100644 --- a/tests/PhysicalQuantity/PowerTest.php +++ b/tests/PhysicalQuantity/PowerTest.php @@ -7,7 +7,7 @@ class PowerTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'W', 'watt', 'watts', diff --git a/tests/PhysicalQuantity/PressureTest.php b/tests/PhysicalQuantity/PressureTest.php index a79d07b..00e2be6 100644 --- a/tests/PhysicalQuantity/PressureTest.php +++ b/tests/PhysicalQuantity/PressureTest.php @@ -7,7 +7,7 @@ class PressureTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'Pa', 'pascal', 'YPa', diff --git a/tests/PhysicalQuantity/QuantityTest.php b/tests/PhysicalQuantity/QuantityTest.php index 958c5c5..ba943e7 100644 --- a/tests/PhysicalQuantity/QuantityTest.php +++ b/tests/PhysicalQuantity/QuantityTest.php @@ -7,7 +7,7 @@ class QuantityTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'mol', 'mole', 'moles', diff --git a/tests/PhysicalQuantity/SolidAngleTest.php b/tests/PhysicalQuantity/SolidAngleTest.php index 8c920e6..008af47 100644 --- a/tests/PhysicalQuantity/SolidAngleTest.php +++ b/tests/PhysicalQuantity/SolidAngleTest.php @@ -7,7 +7,7 @@ class SolidAngleTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'sr', 'steradian', 'steradians', diff --git a/tests/PhysicalQuantity/TemperatureTest.php b/tests/PhysicalQuantity/TemperatureTest.php index f9dd032..57c7003 100644 --- a/tests/PhysicalQuantity/TemperatureTest.php +++ b/tests/PhysicalQuantity/TemperatureTest.php @@ -7,7 +7,7 @@ class TemperatureTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'K', '°K', 'kelvin', diff --git a/tests/PhysicalQuantity/TimeTest.php b/tests/PhysicalQuantity/TimeTest.php index 9a677f2..019f678 100644 --- a/tests/PhysicalQuantity/TimeTest.php +++ b/tests/PhysicalQuantity/TimeTest.php @@ -7,7 +7,7 @@ class TimeTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 's', 'sec', 'secs', diff --git a/tests/PhysicalQuantity/VelocityTest.php b/tests/PhysicalQuantity/VelocityTest.php index 6b94a96..a42d484 100644 --- a/tests/PhysicalQuantity/VelocityTest.php +++ b/tests/PhysicalQuantity/VelocityTest.php @@ -7,7 +7,7 @@ class VelocityTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'm/s', 'meters/sec', 'meters per second', diff --git a/tests/PhysicalQuantity/VolumeFlowTest.php b/tests/PhysicalQuantity/VolumeFlowTest.php index 59bc8de..ee9980a 100644 --- a/tests/PhysicalQuantity/VolumeFlowTest.php +++ b/tests/PhysicalQuantity/VolumeFlowTest.php @@ -7,7 +7,7 @@ class VolumeFlowTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'm^3/s', 'm³/s', 'cubic meter per second', diff --git a/tests/PhysicalQuantity/VolumeTest.php b/tests/PhysicalQuantity/VolumeTest.php index e7399e6..384af3e 100644 --- a/tests/PhysicalQuantity/VolumeTest.php +++ b/tests/PhysicalQuantity/VolumeTest.php @@ -7,7 +7,7 @@ class VolumeTest extends AbstractPhysicalQuantityTestCase { - protected array $supportedUnitsWithAliases = [ + protected $supportedUnitsWithAliases = [ 'm^3', 'm³', 'cubic meter',