Skip to content

Commit 84f234a

Browse files
minor #33154 Parameter type leftovers (derrabus)
This PR was merged into the 5.0-dev branch. Discussion ---------- Parameter type leftovers | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32179 | License | MIT | Doc PR | N/A Commits ------- 34eda04866 Added more parameter type declarations.
2 parents 20d04ac + ab91655 commit 84f234a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

AbstractStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class AbstractStream
3030

3131
private $debug = '';
3232

33-
public function write(string $bytes, $debug = true): void
33+
public function write(string $bytes, bool $debug = true): void
3434
{
3535
if ($debug) {
3636
foreach (explode("\n", trim($bytes)) as $line) {

Smtp/Stream/AbstractStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class AbstractStream
3030

3131
private $debug = '';
3232

33-
public function write(string $bytes, $debug = true): void
33+
public function write(string $bytes, bool $debug = true): void
3434
{
3535
if ($debug) {
3636
foreach (explode("\n", trim($bytes)) as $line) {

Stream/AbstractStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class AbstractStream
3030

3131
private $debug = '';
3232

33-
public function write(string $bytes, $debug = true): void
33+
public function write(string $bytes, bool $debug = true): void
3434
{
3535
if ($debug) {
3636
foreach (explode("\n", trim($bytes)) as $line) {

Transport/Smtp/Stream/AbstractStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class AbstractStream
3030

3131
private $debug = '';
3232

33-
public function write(string $bytes, $debug = true): void
33+
public function write(string $bytes, bool $debug = true): void
3434
{
3535
if ($debug) {
3636
foreach (explode("\n", trim($bytes)) as $line) {

0 commit comments

Comments
 (0)