Skip to content

Commit a623314

Browse files
committed
Use property type hints
Not a BC break since all of them are private.
1 parent c075249 commit a623314

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'@Symfony:risky' => true,
99
'@PHP74Migration' => true,
1010
'@PHP74Migration:risky' => true,
11+
'phpdoc_to_property_type' => true,
1112
// 'phpdoc_to_param_type' => true,
1213
// 'phpdoc_to_return_type' => true,
1314
'phpdoc_types_order' => false,

src/GuzzleTranscoder.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@
1212
use Psr\Http\Message\ResponseInterface;
1313

1414
class GuzzleTranscoder {
15-
/** @var ?TranscoderInterface */
16-
private $transcoder;
15+
private ?TranscoderInterface $transcoder;
1716

18-
/** @var string */
19-
private $targetEncoding;
17+
private string $targetEncoding;
2018

21-
/** @var bool */
22-
private $replaceHeaders;
19+
private bool $replaceHeaders;
2320

24-
/** @var bool */
25-
private $replaceContent;
21+
private bool $replaceContent;
2622

2723
/**
2824
* Constructs a class for transcoding Responses.

0 commit comments

Comments
 (0)