Skip to content

Commit 42ecb78

Browse files
committed
minor #43903 Fix more generic types (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- Fix more generic types | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Some changes I wanted to push to #42471, but then it got merged already. 😇 Commits ------- c54d61e9af Fix more generic types
2 parents 5e9882c + c8ffbda commit 42ecb78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class_exists(ConfigCache::class);
5858
abstract class Kernel implements KernelInterface, RebootableInterface, TerminableInterface
5959
{
6060
/**
61-
* @var BundleInterface[]
61+
* @var array<string, BundleInterface>
6262
*/
6363
protected $bundles = [];
6464

KernelInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface KernelInterface extends HttpKernelInterface
3131
/**
3232
* Returns an array of bundles to register.
3333
*
34-
* @return iterable<BundleInterface>
34+
* @return iterable<mixed, BundleInterface>
3535
*/
3636
public function registerBundles();
3737

@@ -55,7 +55,7 @@ public function shutdown();
5555
/**
5656
* Gets the registered bundle instances.
5757
*
58-
* @return BundleInterface[]
58+
* @return array<string, BundleInterface>
5959
*/
6060
public function getBundles();
6161

0 commit comments

Comments
 (0)