Skip to content

Commit 0ab8748

Browse files
Add native return types to fix compat with v7
1 parent 432283d commit 0ab8748

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.4
5+
---
6+
7+
* Add native return type to `MicroKernelTrait::registerContainerConfiguration()`, to `Translator` and to `Application::reset()`
8+
49
6.3
510
---
611

Console/Application.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ public function getKernel(): KernelInterface
5252
return $this->kernel;
5353
}
5454

55-
/**
56-
* @return void
57-
*/
58-
public function reset()
55+
public function reset(): void
5956
{
6057
if ($this->kernel->getContainer()->has('services_resetter')) {
6158
$this->kernel->getContainer()->get('services_resetter')->reset();

Translation/Translator.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,15 @@ public function warmUp(string $cacheDir): array
118118
return [];
119119
}
120120

121-
/**
122-
* @return void
123-
*/
124-
public function addResource(string $format, mixed $resource, string $locale, string $domain = null)
121+
public function addResource(string $format, mixed $resource, string $locale, string $domain = null): void
125122
{
126123
if ($this->resourceFiles) {
127124
$this->addResourceFiles();
128125
}
129126
$this->resources[] = [$format, $resource, $locale, $domain];
130127
}
131128

132-
/**
133-
* @return void
134-
*/
135-
protected function initializeCatalogue(string $locale)
129+
protected function initializeCatalogue(string $locale): void
136130
{
137131
$this->initialize();
138132
parent::initializeCatalogue($locale);

0 commit comments

Comments
 (0)