8000 Add types to constructors and private/final/internal methods (Batch I) · symfony/symfony@4039b95 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4039b95

Browse files
derrabusfabpot
authored andcommitted
Add types to constructors and private/final/internal methods (Batch I)
1 parent 373469b commit 4039b95

34 files changed

+69
-66
lines changed

src/Symfony/Component/Asset/Package.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ protected function getVersionStrategy()
6868
return $this->versionStrategy;
6969
}
7070

71+
/**
72+
* @return bool
73+
*/
7174
protected function isAbsoluteUrl($url)
7275
{
7376
return false !== strpos($url, '://') || '//' === substr($url, 0, 2);

src/Symfony/Component/Asset/VersionStrategy/JsonManifestVersionStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function applyVersion($path)
5050
return $this->getManifestPath($path) ?: $path;
5151
}
5252

53-
private function getManifestPath(string $path)
53+
private function getManifestPath(string $path): ?string
5454
{
5555
if (null === $this->manifestData) {
5656
if (!file_exists($this->manifestPath)) {

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ protected function requestFromRequest(Request $request, $changeHistory = true)
710710
return $this->request($request->getMethod(), $request->getUri(), $request->getParameters(), $request->getFiles(), $request->getServer(), $request->getContent(), $changeHistory);
711711
}
712712

713-
private function updateServerFromUri(array $server, string $uri)
713+
private function updateServerFromUri(array $server, string $uri): array
714714
{
715715
$server['HTTP_HOST'] = $this->extractHost($uri);
716716
$scheme = parse_url($uri, PHP_URL_SCHEME);
@@ -720,7 +720,7 @@ private function updateServerFromUri(array $server, string $uri)
720720
return $server;
721721
}
722722

723-
private function extractHost(string $uri)
723+
private function extractHost(string $uri): ?string
724724
{
725725
$host = parse_url($uri, PHP_URL_HOST);
726726

src/Symfony/Component/Config/Resource/GlobResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function (\SplFileInfo $file, $path) {
174174
}
175175
}
176176

177-
private function computeHash()
177+
private function computeHash(): string
178178
{
179179
$hash = hash_init('md5');
180180

src/Symfony/Component/Config/Resource/ReflectionClassResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function loadFiles(\ReflectionClass $class)
9898
} while ($class = $class->getParentClass());
9999 F42D
}
100100

101-
private function computeHash()
101+
private function computeHash(): string
102102
{
103103
if (null === $this->classReflector) {
104104
try {
@@ -117,7 +117,7 @@ private function computeHash()
117117
return hash_final($hash);
118118
}
119119

120-
private function generateSignature(\ReflectionClass $class)
120+
private function generateSignature(\ReflectionClass $class): iterable
121121
{
122122
yield $class->getDocComment();
123123
yield (int) $class->isFinal();

src/Symfony/Component/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,12 +1125,12 @@ public function setDefaultCommand($commandName, $isSingleCommand = false)
11251125
/**
11261126
* @internal
11271127
*/
1128-
public function isSingleCommand()
1128+
public function isSingleCommand(): bool
11291129
{
11301130
return $this->singleCommand;
11311131
}
11321132

1133-
private function splitStringByWidth(string $string, int $width)
1133+
private function splitStringByWidth(string $string, int $width): array
11341134
{
11351135
// str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly.
11361136
// additionally, array_slice() is not enough as some character has doubled width.

src/Symfony/Component/Console/Command/ListCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7676
]);
7777
}
7878

79-
/**
80-
* {@inheritdoc}
81-
*/
82-
private function createDefinition()
79+
private function createDefinition(): InputDefinition
8380
{
8481
return new InputDefinition([
8582
new InputArgument('namespace', InputArgument::OPTIONAL, 'The namespace name'),

src/Symfony/Component/Console/Descriptor/MarkdownDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected function describeApplication(Application $application, array $options
167167
}
168168
}
169169

170-
private function getApplicationTitle(Application $application)
170+
private function getApplicationTitle(Application $application): string
171171
{
172172
if ('UNKNOWN' !== $application->getName()) {
173173
if ('UNKNOWN' !== $application->getVersion()) {

src/Symfony/Component/Console/EventListener/ErrorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function getSubscribedEvents()
7777
];
7878
}
7979

80-
private static function getInputString(ConsoleEvent $event)
80+
private static function getInputString(ConsoleEvent $event): ?string
8181
{
8282
$commandName = $event->getCommand() ? $event->getCommand()->getName() : null;
8383
$input = $event->getInput();

src/Symfony/Component/Console/Helper/ProcessHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function wrapCallback(OutputInterface $output, Process $process, callable
135135
};
136136
}
137137

138-
private function escapeString(string $str)
138+
private function escapeString(string $str): string
139139
{
140140
return str_replace('<', '\\<', $str);
141141
}

src/Symfony/Component/Console/Helper/ProgressIndicator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private function display()
200200
}, $this->format));
201201
}
202202

203-
private function determineBestFormat()
203+
private function determineBestFormat(): string
204204
{
205205
switch ($this->output->getVerbosity()) {
206206
// OutputInterface::VERBOSITY_QUIET: display is disabled anyway
@@ -227,12 +227,12 @@ private function overwrite(string $message)
227227
}
228228
}
229229

230-
private function getCurrentTimeInMilliseconds()
230+
private function getCurrentTimeInMilliseconds(): float
231231
{
232232
return round(microtime(true) * 1000);
233233
}
234234

235-
private static function initPlaceholderFormatters()
235+
private static function initPlaceholderFormatters(): array
236236
{
237237
return [
238238
'indicator' => function (self $indicator) {
@@ -250,7 +250,7 @@ private static function initPlaceholderFormatters()
250250
];
251251
}
252252

253-
private static function initFormats()
253+
private static function initFormats(): array
254254
{
255255
return [
256256
'normal' => ' %indicator% %message%',

src/Symfony/Component/Console/Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function ($match) use ($ret) {
336336
return $fullChoice;
337337
}
338338

339-
private function mostRecentlyEnteredValue(string $entered)
339+
private function mostRecentlyEnteredValue(string $entered): string
340340
{
341341
// Determine the most recent value that the user entered
342342
if (false === strpos($entered, ',')) {

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ private function renderRowSeparator(int $type = self::SEPARATOR_MID, string $tit
468468
/**
469469
* Renders vertical column separator.
470470
*/
471-
private function renderColumnSeparator(int $type = self::BORDER_OUTSIDE)
471+
private function renderColumnSeparator(int $type = self::BORDER_OUTSIDE): string
472472
{
473473
$borders = $this->style->getBorderChars();
474474

@@ -501,7 +501,7 @@ private function renderRow(array $row, string $cellFormat, string $firstCellForm
501501
/**
502502
* Renders table cell with padding.
503503
*/
504-
private function renderCell(array $row, int $column, string $cellFormat)
504+
private function renderCell(array $row, int $column, string $cellFormat): string
505505
{
506506
$cell = isset($row[$column]) ? $row[$column] : '';
507507
$width = $this->effectiveColumnWidths[$column];
@@ -546,7 +546,7 @@ private function calculateNumberOfColumns(array $rows)
546546
$this->numberOfColumns = max($columns);
547547
}
548548

549-
private function buildTableRows(array $rows)
549+
private function buildTableRows(array $rows): TableRows
550550
{
551551
/** @var WrappableOutputFormatterInterface $formatter */
552552
$formatter = $this->output->getFormatter();
@@ -580,7 +580,7 @@ private function buildTableRows(array $rows)
580580
}
581581
}
582582

583-
return new TableRows(function () use ($rows, $unmergedRows) {
583+
return new TableRows(function () use ($rows, $unmergedRows): \Traversable {
584584
foreach ($rows as $rowKey => $row) {
585585
yield $this->fillCells($row);
586586

@@ -784,7 +784,7 @@ private function cleanup()
784784
$this->numberOfColumns = null;
785785
}
786786

787-
private static function initStyles()
787+
private static function initStyles(): array
788788
{
789789
$borderless = new TableStyle();
790790
$borderless
@@ -831,7 +831,7 @@ private static function initStyles()
831831
];
832832
}
833833

834-
private function resolveStyle($name)
834+
private function resolveStyle($name): TableStyle
835835
{
836836
if ($name instanceof TableStyle) {
837837
return $name;

src/Symfony/Component/Console/Helper/TableStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function getVerticalBorderChar()
192192
*
193193
* @internal
194194
*/
195-
public function getBorderChars()
195+
public function getBorderChars(): array
196196
{
197197
return [
198198
$this->horizontalOutsideBorderChar,

src/Symfony/Component/Console/Style/SymfonyStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private function writeBuffer(string $message, bool $newLine, int $type): void
454454
$this->bufferedOutput->write(substr($message, -4), $newLine, $type);
455455
}
456456

457-
private function createBlock(iterable $messages, string $type = null, string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = false)
457+
private function createBlock(iterable $messages, string $type = null, string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = false): array
458458
{
459459
$indentLength = 0;
460460
$prefixLength = Helper::strlenWithoutDecoration($this->getFormatter(), $prefix);

src/Symfony/Component/Console/Tester/TesterTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ private function initOutput(array $options)
162162
}
163163
}
164164

165+
/**
166+
* @return resource
167+
*/
165168
private static function createStream(array $inputs)
166169
{
167170
$stream = fopen('php://memory', 'r+', false);

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public function checkCase(\ReflectionClass $refl, $file, $class)
444444
/**
445445
* `realpath` on MacOSX doesn't normalize the case of characters.
446446
*/
447-
private function darwinRealpath(string $real)
447+
private function darwinRealpath(string $real): string
448448
{
449449
$i = 1 + strrpos($real, '/');
450450
$file = substr($real, $i);

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ protected function getFatalErrorHandlers()
691691
/**
692692
* Cleans the trace by removing function arguments and the frames added by the error handler and DebugClassLoader.
693693
*/
694-
private function cleanTrace(array $backtrace, int $type, string $file, int $line, bool $throw)
694+
private function cleanTrace(array $backtrace, int $type, string $file, int $line, bool $throw): array
695695
{
696696
$lightTrace = $backtrace;
697697

src/Symfony/Component/Debug/Exception/FlattenException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public function setTrace($trace, $file, $line)
289289
return $this;
290290
}
291291

292-
private function flattenArgs(array $args, int $level = 0, int &$count = 0)
292+
private function flattenArgs(array $args, int $level = 0, int &$count = 0): array
293293
{
294294
$result = [];
295295
foreach ($args as $key => $value) {
@@ -325,7 +325,7 @@ private function flattenArgs(array $args, int $level = 0, int &$count = 0)
325325
return $result;
326326
}
327327

328-
private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value)
328+
private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value): string
329329
{
330330
$array = new \ArrayObject($value);
331331

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public function getStylesheet(FlattenException $exception)
359359
EOF;
360360
}
361361

362-
private function decorate(string $content, string $css)
362+
private function decorate(string $content, string $css): string
363363
{
364364
return <<<EOF
365365
<!DOCTYPE html>
@@ -376,14 +376,14 @@ private function decorate(string $content, string $css)
376376
EOF;
377377
}
378378

379-
private function formatClass(string $class)
379+
private function formatClass(string $class): string
380380
{
381381
$parts = explode('\\', $class);
382382

383383
return sprintf('<abbr title="%s">%s</abbr>', $class, array_pop($parts));
384384
}
385385

386-
private function formatPath(string $path, int $line)
386+
private function formatPath(string $path, int $line): string
387387
{
388388
$file = $this->escapeHtml(preg_match('#[^/\\\\]*+$#', $path, $file) ? $file[0] : $path);
389389
$fmt = $this->fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
@@ -445,17 +445,17 @@ private function formatArgs(array $args): string
445445
/**
446446
* HTML-encodes a string.
447447
*/
448-
private function escapeHtml(string $str)
448+
private function escapeHtml(string $str): string
449449
{
450450
return htmlspecialchars($str, ENT_COMPAT | ENT_SUBSTITUTE, $this->charset);
451451
}
452452

453-
private function getSymfonyGhostAsSvg()
453+
private function getSymfonyGhostAsSvg(): string
454454
{
455455
return '<svg viewBox="0 0 136 81" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.4"><path d="M92.4 20.4a23.2 23.2 0 0 1 9 1.9 23.7 23.7 0 0 1 5.2 3 24.3 24.3 0 0 1 3.4 3.4 24.8 24.8 0 0 1 5 9.4c.5 1.7.8 3.4 1 5.2v14.5h.4l.5.2a7.4 7.4 0 0 0 2.5.2l.2-.2.6-.8.8-1.3-.2-.1a5.5 5.5 0 0 1-.8-.3 5.6 5.6 0 0 1-2.3-1.8 5.7 5.7 0 0 1-.9-1.6 6.5 6.5 0 0 1-.2-2.8 7.3 7.3 0 0 1 .5-2l.3-.3.8-.9.3-.3c.2-.2.5-.3.8-.3H120.7c.2 0 .3-.1.4 0h.4l.2.1.3.2.2-.4.3-.4.1-.1 1.2-1 .3-.2.4-.1.4-.1h.3l1.5.1.4.1.8.5.1.2 1 1.1v.2H129.4l.4-.2 1.4-.5h1.1c.3 0 .7.2 1 .4.2 0 .3.2.5.3l.2.2.5.3.4.6.1.3.4 1.4.1.4v.6a7.8 7.8 0 0 1-.1.6 9.9 9.9 0 0 1-.8 2.4 7.8 7.8 0 0 1-3 3.3 6.4 6.4 0 0 1-1 .5 6.1 6.1 0 0 1-.6.2l-.7.1h-.1a23.4 23.4 0 0 1-.2 1.7 14.3 14.3 0 0 1-.6 2.1l-.8 2a9.2 9.2 0 0 1-.4.6l-.7 1a9.1 9.1 0 0 1-2.3 2.2c-.9.5-2 .6-3 .7l-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.7-.8-.6-.7.2-.9 1.7-.5 3.8-.2 1-.6 2-1.3 2-.4.2-.8-.2-1-1l-.2-3c1.2-.5 2-1 1.8-1.7-.1-.5-.8-.7-.8-.7s0 .7-1 1.2l-.2-1.4c-.1-.6-.4-1-1.7-.6l.4 1 .2 1.5h-1v.8c0 .3.4.3 1 .2 0 1.3 0 2.7.2 3.6.3 1.4 1.2 2 2 1.7 1-.2 1.6-1.3 2-2.3.3 1.2 1 2 1.9 1.7.7-.2 1.2-1.1 1.6-2.2.4.8 1.1 1.1 2 1 1.2-.4 1.7-1.6 1.8-2.8h.2c.6-.2 1-.6 1.3-1 0 .8 0 1.5.2 2.1.1.5.3.7.6.6.5-.1 1-.9 1-.9a4 4 0 0 1-.3-1c-.3-1.3.3-3.6 1-3.7.2 0 .3.2.5.7v.8l.2 1.5v.7c.2.7.7 1.3 1.5 1 1.3-.2 2-2.6 2.1-3.9.3.2.6.2 1 .1-.6-2.2 0-6.1-.3-7.9-.1-.4-1-.5-1.7-.5h-.4zm-21.5 12c.4 0 .7.3 1 1.1.2 1.3-.3 2.6-.9 2.8-.2 0-.7 0-1-1.2v-.4c0-1.3.4-2 1-2.2zm-5.2 1c.3 0 .6.2.6.5.2.6-.3 1.3-1.2 2-.3-1.4.1-2.3.6-2.5zm18-.4c-.5.2-1-.4-1.2-1.2-.2-1 0-2.1.7-2.5v.5c.2.7.6 1.5 1.3 1.9 0 .7-.2 1.2-.7 1.3zm10-1.6c0 .5.4.7 1 .6.8-.2 1-1 .8-1.6 0-.5-.4-1-1-.8-.5.1-1 .9-.8 1.8zm-14.3-5.5c0-.4-.5-.7-1-.5-.8.2-1 1-.9 1.5.2.6.5 1 1 .8.5 0 1.1-1 1-1.8z" fill="#fff" fill-opacity=".6"/>'.$this->addElementToGhost().'</svg>';
456456
}
457457

458-
private function addElementToGhost()
458+
private function addElementToGhost(): string
459459
{
460460
if (!isset(self::GHOST_ADDONS[date('m-d')])) {
461461
return '';

0 commit comments

Comments
 (0)
0