Skip to content

Commit 4d48988

Browse files
authored
Add some missing return type PHPdoc (#46961)
1 parent e4c24f9 commit 4d48988

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

src/Illuminate/Console/BufferedConsoleOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public function fetch()
2727

2828
/**
2929
* {@inheritdoc}
30+
*
31+
* @return void
3032
*/
3133
protected function doWrite(string $message, bool $newline)
3234
{

src/Illuminate/Console/OutputStyle.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public function __construct(InputInterface $input, OutputInterface $output)
3939

4040
/**
4141
* {@inheritdoc}
42+
*
43+
* @return void
4244
*/
4345
public function write(string|iterable $messages, bool $newline = false, int $options = 0)
4446
{
@@ -49,6 +51,8 @@ public function write(string|iterable $messages, bool $newline = false, int $opt
4951

5052
/**
5153
* {@inheritdoc}
54+
*
55+
* @return void
5256
*/
5357
public function writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)
5458
{
@@ -59,6 +63,8 @@ public function writeln(string|iterable $messages, int $type = self::OUTPUT_NORM
5963

6064
/**
6165
* {@inheritdoc}
66+
*
67+
* @return void
6268
*/
6369
public function newLine(int $count = 1)
6470
{

src/Illuminate/Console/QuestionHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class QuestionHelper extends SymfonyQuestionHelper
1414
{
1515
/**
1616
* {@inheritdoc}
17+
*
18+
* @return void
1719
*/
1820
protected function writePrompt(OutputInterface $output, Question $question)
1921
{

src/Illuminate/Database/DBAL/TimestampType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class TimestampType extends Type implements PhpDateTimeMappingType
1111
{
1212
/**
1313
* {@inheritdoc}
14+
*
15+
* @return string
1416
*/
1517
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
1618
{
@@ -87,6 +89,8 @@ protected function getSQLitePlatformSQLDeclaration(array $fieldDeclaration)
8789

8890
/**
8991
* {@inheritdoc}
92+
*
93+
* @return string
9094
*/
9195
public function getName()
9296
{

src/Illuminate/Session/SymfonySessionDecorator.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function getId(): string
4646

4747
/**
4848
* {@inheritdoc}
49+
*
50+
* @return void
4951
*/
5052
public function setId(string $id)
5153
{
@@ -62,6 +64,8 @@ public function getName(): string
6264

6365
/**
6466
* {@inheritdoc}
67+
*
68+
* @return void
6569
*/
6670
public function setName(string $name)
6771
{
@@ -90,6 +94,8 @@ public function migrate(bool $destroy = false, int $lifetime = null): bool
9094

9195
/**
9296
* {@inheritdoc}
97+
*
98+
* @return void
9399
*/
94100
public function save()
95101
{
@@ -114,6 +120,8 @@ public function get(string $name, mixed $default = null): mixed
114120

115121
/**
116122
* {@inheritdoc}
123+
*
124+
* @return void
117125
*/
118126
public function set(string $name, mixed $value)
119127
{
@@ -130,6 +138,8 @@ public function all(): array
130138

131139
/**
132140
* {@inheritdoc}
141+
*
142+
* @return void
133143
*/
134144
public function replace(array $attributes)
135145
{
@@ -146,6 +156,8 @@ public function remove(string $name): mixed
146156

147157
/**
148158
* {@inheritdoc}
159+
*
160+
* @return void
149161
*/
150162
public function clear()
151163
{
@@ -162,6 +174,8 @@ public function isStarted(): bool
162174

163175
/**
164176
* {@inheritdoc}
177+
*
178+
* @return void
165179
*/
166180
public function registerBag(SessionBagInterface $bag)
167181
{

0 commit comments

Comments
 (0)