Skip to content

Commit 80b4ae2

Browse files
committed
Rector TypedPropertyFromStrictSetUpRector
1 parent 0e6f413 commit 80b4ae2

File tree

86 files changed

+114
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+114
-408
lines changed

tests/PhpSpreadsheetTests/Calculation/BinaryComparisonTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111

1212
class BinaryComparisonTest extends TestCase
1313
{
14-
/**
15-
* @var string
16-
*/
17-
private $compatibilityMode;
14+
private string $compatibilityMode;
1815

1916
protected function setUp(): void
2017
{

tests/PhpSpreadsheetTests/Calculation/CalculationFunctionListTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@
1111

1212
class CalculationFunctionListTest extends TestCase
1313
{
14-
/**
15-
* @var string
16-
*/
17-
private $compatibilityMode;
14+
private string $compatibilityMode;
1815

19-
/**
20-
* @var string
21-
*/
22-
private $locale;
16+
private string $locale;
2317

2418
protected function setUp(): void
2519
{

tests/PhpSpreadsheetTests/Calculation/CalculationSettingsTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,9 @@
1010

1111
class CalculationSettingsTest extends TestCase
1212
{
13-
/**
14-
* @var string
15-
*/
16-
private $compatibilityMode;
13+
private string $compatibilityMode;
1714

18-
/**
19-
* @var string
20-
*/
21-
private $locale;
15+
private string $locale;
2216

2317
protected function setUp(): void
2418
{

tests/PhpSpreadsheetTests/Calculation/CalculationTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@
1313

1414
class CalculationTest extends TestCase
1515
{
16-
/**
17-
* @var string
18-
*/
19-
private $compatibilityMode;
16+
private string $compatibilityMode;
2017

21-
/**
22-
* @var string
23-
*/
24-
private $locale;
18+
private string $locale;
2519

2620
protected function setUp(): void
2721
{

tests/PhpSpreadsheetTests/Calculation/Engine/RangeTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class RangeTest extends TestCase
1414
/** @var string */
1515
private $incompleteMessage = 'Must be revisited';
1616

17-
/**
18-
* @var Spreadsheet
19-
*/
20-
private $spreadSheet;
17+
private \PhpOffice\PhpSpreadsheet\Spreadsheet $spreadSheet;
2118

2219
protected function setUp(): void
2320
{

tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DateTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@
1616

1717
class DateTest extends TestCase
1818
{
19-
/**
20-
* @var int
21-
*/
22-
private $excelCalendar;
19+
private int $excelCalendar;
2320

24-
/**
25-
* @var string
26-
*/
27-
private $returnDateType;
21+
private string $returnDateType;
2822

2923
protected function setUp(): void
3024
{

tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DateValueTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@
1717

1818
class DateValueTest extends TestCase
1919
{
20-
/**
21-
* @var int
22-
*/
23-
private $excelCalendar;
20+
private int $excelCalendar;
2421

25-
/**
26-
* @var string
27-
*/
28-
private $returnDateType;
22+
private string $returnDateType;
2923

3024
protected function setUp(): void
3125
{

tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DayTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414

1515
class DayTest extends TestCase
1616
{
17-
/**
18-
* @var string
19-
*/
20-
private $compatibilityMode;
17+
private string $compatibilityMode;
2118

2219
protected function setUp(): void
2320
{

tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/EDateTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414

1515
class EDateTest extends TestCase
1616
{
17-
/**
18-
* @var string
19-
*/
20-
private $returnDateType;
17+
private string $returnDateType;
2118

2219
protected function setUp(): void
2320
{

tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/EoMonthTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414

1515
class EoMonthTest extends TestCase
1616
{
17-
/**
18-
* @var string
19-
*/
20-
private $returnDateType;
17+
private string $returnDateType;
2118

2219
protected function setUp(): void
2320
{

0 commit comments

Comments
 (0)