Skip to content

Commit 112cf49

Browse files
authored
[13.x] Sync getter return types with their property generics (#60591)
1 parent 4eef2ca commit 112cf49

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Illuminate/Config/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function push($key, $value)
251251
/**
252252
* Get all of the configuration items for the application.
253253
*
254-
* @return array
254+
* @return array<string, mixed>
255255
*/
256256
public function all()
257257
{

src/Illuminate/Contracts/Config/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function get($key, $default = null);
2424
/**
2525
* Get all of the configuration items for the application.
2626
*
27-
* @return array
27+
* @return array<string, mixed>
2828
*/
2929
public function all();
3030

src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ public function getPivotAccessor()
16871687
/**
16881688
* Get the pivot columns for this relationship.
16891689
*
1690-
* @return array
1690+
* @return array<string|\Illuminate\Contracts\Database\Query\Expression>
16911691
*/
16921692
public function getPivotColumns()
16931693
{

src/Illuminate/Events/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ protected function shouldDeferEvent(string $event)
894894
/**
895895
* Gets the raw, unprepared listeners.
896896
*
897-
* @return array
897+
* @return array<string, callable|array|class-string|null>
898898
*/
899899
public function getRawListeners()
900900
{

src/Illuminate/Foundation/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ protected function renderException($request, Throwable $e)
577577
/**
578578
* Get the application's global middleware.
579579
*
580-
* @return array
580+
* @return array<int, class-string|string>
581581
*/
582582
public function getGlobalMiddleware()
583583
{

0 commit comments

Comments
 (0)