Skip to content

Commit 9fffb97

Browse files
wouterjnicolas-grekas
authored andcommitted
[Components] Convert to native return types
1 parent 0637d2b commit 9fffb97

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

Data/Bundle/Compiler/BundleCompilerInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ interface BundleCompilerInterface
2323
/**
2424
* Compiles a resource bundle at the given source to the given target
2525
* directory.
26-
*
27-
* @return void
2826
*/
29-
public function compile(string $sourcePath, string $targetDir);
27+
public function compile(string $sourcePath, string $targetDir): void;
3028
}

Data/Bundle/Writer/BundleWriterInterface.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@
2020
*/
2121
interface BundleWriterInterface
2222
{
23-
/**
24-
* @return void
25-
*/
26-
public function write(string $path, string $locale, mixed $data);
23+
public function write(string $path, string $locale, mixed $data): void;
2724
}

Util/IntlTestHelper.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ class IntlTestHelper
2929
{
3030
/**
3131
* Should be called before tests that work fine with the stub implementation.
32-
*
33-
* @return void
3432
*/
35-
public static function requireIntl(TestCase $testCase, string $minimumIcuVersion = null)
33+
public static function requireIntl(TestCase $testCase, string $minimumIcuVersion = null): void
3634
{
3735
$minimumIcuVersion ??= Intl::getIcuStubVersion();
3836

@@ -63,10 +61,8 @@ public static function requireIntl(TestCase $testCase, string $minimumIcuVersion
6361
/**
6462
* Should be called before tests that require a feature-complete intl
6563
* implementation.
66-
*
67-
* @return void
6864
*/
69-
public static function requireFullIntl(TestCase $testCase, string $minimumIcuVersion = null)
65+
public static function requireFullIntl(TestCase $testCase, string $minimumIcuVersion = null): void
7066
{
7167
// We only run tests if the intl extension is loaded...
7268
if (!Intl::isExtensionLoaded()) {
@@ -85,10 +81,8 @@ public static function requireFullIntl(TestCase $testCase, string $minimumIcuVer
8581

8682
/**
8783
* Skips the test unless the current system has a 32bit architecture.
88-
*
89-
* @return void
9084
*/
91-
public static function require32Bit(TestCase $testCase)
85+
public static function require32Bit(TestCase $testCase): void
9286
{
9387
if (4 !== \PHP_INT_SIZE) {
9488
$testCase->markTestSkipped('PHP 32 bit is required.');
@@ -97,10 +91,8 @@ public static function require32Bit(TestCase $testCase)
9791

9892
/**
9993
* Skips the test unless the current system has a 64bit architecture.
100-
*
101-
* @return void
10294
*/
103-
public static function require64Bit(TestCase $testCase)
95+
public static function require64Bit(TestCase $testCase): void
10496
{
10597
if (8 !== \PHP_INT_SIZE) {
10698
$testCase->markTestSkipped('PHP 64 bit is required.');

0 commit comments

Comments
 (0)