File tree 7 files changed +10
-24
lines changed
7 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 7
7
'@Symfony ' => true ,
8
8
'@PHP74Migration ' => true ,
9
9
'@PHP74Migration:risky ' => true ,
10
+ 'phpdoc_to_property_type ' => true ,
10
11
// 'phpdoc_to_param_type' => true, // requires PHP 8.0
11
12
'phpdoc_to_return_type ' => true ,
12
13
// overwrite some Symfony rules
Original file line number Diff line number Diff line change 10
10
11
11
class IconvTranscoder implements TranscoderInterface
12
12
{
13
- /**
14
- * @var string
15
- */
16
- private $ defaultEncoding ;
13
+ private string $ defaultEncoding ;
17
14
18
15
/**
19
16
* Create an Iconv-based transcoder.
Original file line number Diff line number Diff line change @@ -13,12 +13,9 @@ class MbTranscoder implements TranscoderInterface
13
13
/**
14
14
* @var array<string, int>
15
15
*/
16
- private static $ encodings ;
16
+ private static array $ encodings ;
17
17
18
- /**
19
- * @var string
20
- */
21
- private $ defaultEncoding ;
18
+ private string $ defaultEncoding ;
22
19
23
20
/**
24
21
* Create a Mb-based transcoder.
@@ -31,7 +28,7 @@ public function __construct(string $defaultEncoding = 'UTF-8')
31
28
throw new ExtensionMissingException ('mb ' );
32
29
}
33
30
34
- if (null === self ::$ encodings ) {
31
+ if (! isset ( self ::$ encodings) ) {
35
32
self ::$ encodings = array_change_key_case (
36
33
array_flip (mb_list_encodings ()),
37
34
CASE_LOWER
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ class Transcoder implements TranscoderInterface
12
12
/**
13
13
* @var array<string, TranscoderInterface>
14
14
*/
15
- private static $ chain ;
15
+ private static array $ chain ;
16
16
17
17
/**
18
18
* @var TranscoderInterface[]
19
19
*/
20
- private $ transcoders = [];
20
+ private array $ transcoders = [];
21
21
22
22
/**
23
23
* @param TranscoderInterface[] $transcoders
Original file line number Diff line number Diff line change 8
8
9
9
class IconvTranscoderTest extends \PHPUnit \Framework \TestCase
10
10
{
11
- /**
12
- * @var IconvTranscoder
13
- */
14
- private $ transcoder ;
11
+ private IconvTranscoder $ transcoder ;
15
12
16
13
/**
17
14
* @before
Original file line number Diff line number Diff line change 8
8
9
9
class MbTranscoderTest extends \PHPUnit \Framework \TestCase
10
10
{
11
- /**
12
- * @var MbTranscoder
13
- */
14
- private $ transcoder ;
11
+ private MbTranscoder $ transcoder ;
15
12
16
13
/**
17
14
* @before
Original file line number Diff line number Diff line change 9
9
10
10
class TranscoderTest extends \PHPUnit \Framework \TestCase
11
11
{
12
- /**
13
- * @var TranscoderInterface
14
- */
15
- private $ transcoder ;
12
+ private TranscoderInterface $ transcoder ;
16
13
17
14
/**
18
15
* @before
You can’t perform that action at this time.
0 commit comments