Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3912364
D3582.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D3582.diff
View Options
diff --git a/omnitools/tests/Collections/WeightedListTest.php b/omnitools/tests/Collections/WeightedListTest.php
--- a/omnitools/tests/Collections/WeightedListTest.php
+++ b/omnitools/tests/Collections/WeightedListTest.php
@@ -9,10 +9,7 @@
class WeightedListTest extends TestCase {
- /**
- * @var WeightedList
- */
- private $list;
+ private WeightedList $list;
///
/// Fixtures
diff --git a/omnitools/tests/Collections/WeightedValueTest.php b/omnitools/tests/Collections/WeightedValueTest.php
--- a/omnitools/tests/Collections/WeightedValueTest.php
+++ b/omnitools/tests/Collections/WeightedValueTest.php
@@ -9,15 +9,9 @@
class WeightedValueTest extends TestCase {
- /**
- * @var WeightedValue
- */
- private $lowValue;
-
- /**
- * @var WeightedValue
- */
- private $highValue;
+ private WeightedValue $lowValue;
+
+ private WeightedValue $highValue;
///
/// Fixtures
diff --git a/omnitools/tests/DateTime/DateStampTest.php b/omnitools/tests/DateTime/DateStampTest.php
--- a/omnitools/tests/DateTime/DateStampTest.php
+++ b/omnitools/tests/DateTime/DateStampTest.php
@@ -15,10 +15,7 @@
/// Private members
///
- /**
- * @var DateStamp
- */
- private $dateStamp;
+ private DateStamp $dateStamp;
///
/// Fixtures
diff --git a/omnitools/tests/HTTP/Requests/AcceptedLanguagesTest.php b/omnitools/tests/HTTP/Requests/AcceptedLanguagesTest.php
--- a/omnitools/tests/HTTP/Requests/AcceptedLanguagesTest.php
+++ b/omnitools/tests/HTTP/Requests/AcceptedLanguagesTest.php
@@ -8,10 +8,7 @@
class AcceptedLanguagesTest extends TestCase {
- /**
- * @var AcceptedLanguages
- */
- private $languages;
+ private AcceptedLanguages $languages;
protected function setUp () : void {
$this->languages = new AcceptedLanguages("en-US,en;q=0.9,fr;q=0.8");
diff --git a/omnitools/tests/Network/IPv4RangeTest.php b/omnitools/tests/Network/IPv4RangeTest.php
--- a/omnitools/tests/Network/IPv4RangeTest.php
+++ b/omnitools/tests/Network/IPv4RangeTest.php
@@ -7,10 +7,7 @@
class IPv4RangeTest extends TestCase {
- /**
- * @var IPRange
- */
- protected $range;
+ protected IPRange $range;
///
/// Fixtures
diff --git a/omnitools/tests/Network/IPv6RangeTest.php b/omnitools/tests/Network/IPv6RangeTest.php
--- a/omnitools/tests/Network/IPv6RangeTest.php
+++ b/omnitools/tests/Network/IPv6RangeTest.php
@@ -7,10 +7,7 @@
class IPv6RangeTest extends TestCase {
- /**
- * @var IPRange
- */
- protected $range;
+ protected IPRange $range;
///
/// Fixtures
diff --git a/omnitools/tests/Reflection/CodeFileTest.php b/omnitools/tests/Reflection/CodeFileTest.php
--- a/omnitools/tests/Reflection/CodeFileTest.php
+++ b/omnitools/tests/Reflection/CodeFileTest.php
@@ -15,15 +15,9 @@
use WithData;
- /**
- * @var CodeFile
- */
- private $validCodeFile;
-
- /**
- * @var CodeFile
- */
- private $notExistingCodeFile;
+ private CodeFile $validCodeFile;
+
+ private CodeFile $notExistingCodeFile;
public function setUp () : void {
$file = $this->getDataPath("MockLib/Bar.php");
diff --git a/omnitools/tests/Strings/Multibyte/OmniStringTest.php b/omnitools/tests/Strings/Multibyte/OmniStringTest.php
--- a/omnitools/tests/Strings/Multibyte/OmniStringTest.php
+++ b/omnitools/tests/Strings/Multibyte/OmniStringTest.php
@@ -9,10 +9,7 @@
class OmniStringTest extends TestCase {
- /**
- * @var OmniString
- */
- private $string;
+ private OmniString $string;
protected function setUp () : void {
$this->string = new OmniString("foo");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 05:40 (20 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307555
Default Alt Text
D3582.diff (3 KB)
Attached To
Mode
D3582: Use typed properties in OmniTools tests
Attached
Detach File
Event Timeline
Log In to Comment