Rector PropertyTypeFromStrictSetterGetterRector

This commit is contained in:
Adrien Crivelli
2023-09-08 00:40:49 +08:00
parent 4b0da60ec4
commit ef5762ec7f
6 changed files with 6 additions and 18 deletions
@@ -6,10 +6,8 @@ class SpgrContainer
{
/**
* Parent Shape Group Container.
*
* @var null|SpgrContainer
*/
private $parent;
private ?self $parent = null;
/**
* Shape Container collection.
@@ -8,10 +8,8 @@ class Blip
{
/**
* The parent BSE.
*
* @var BSE
*/
private $parent;
private BSE $parent;
/**
* Raw image data.
+1 -3
View File
@@ -153,10 +153,8 @@ class BaseDrawing implements IComparable
/**
* Image hyperlink.
*
* @var null|Hyperlink
*/
private $hyperlink;
private ?Hyperlink $hyperlink = null;
/**
* Image type.
@@ -70,10 +70,8 @@ class TableStyle
/**
* Theme.
*
* @var string
*/
private $theme;
private string $theme;
/**
* Show First Column.
+1 -3
View File
@@ -170,10 +170,8 @@ class Workbook extends BIFFwriter
/**
* Escher object corresponding to MSODRAWINGGROUP.
*
* @var null|\PhpOffice\PhpSpreadsheet\Shared\Escher
*/
private $escher;
private ?\PhpOffice\PhpSpreadsheet\Shared\Escher $escher = null;
/** @var mixed */
private static $scrutinizerFalse = false;
+1 -3
View File
@@ -176,10 +176,8 @@ class Worksheet extends BIFFwriter
/**
* Escher object corresponding to MSODRAWING.
*
* @var null|\PhpOffice\PhpSpreadsheet\Shared\Escher
*/
private $escher;
private ?\PhpOffice\PhpSpreadsheet\Shared\Escher $escher = null;
/**
* Array of font hashes associated to FONT records index.