Skip to content

Commit

Permalink
Added arraydebug stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 2, 2023
1 parent 1b1dc7b commit c10f4c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,7 @@ final class PhpStormStubsMap
'array_column' => 'standard/standard_9.php',
'array_combine' => 'standard/standard_9.php',
'array_count_values' => 'standard/standard_9.php',
'array_debuginfo' => 'arraydebug/arraydebug.stub.php',
'array_diff' => 'standard/standard_9.php',
'array_diff_assoc' => 'standard/standard_9.php',
'array_diff_key' => 'standard/standard_9.php',
Expand All @@ -1685,6 +1686,7 @@ final class PhpStormStubsMap
'array_fill_keys' => 'standard/standard_8.php',
'array_filter' => 'standard/standard_9.php',
'array_flip' => 'standard/standard_9.php',
'array_hash_distribution' => 'arraydebug/arraydebug.stub.php',
'array_intersect' => 'standard/standard_9.php',
'array_intersect_assoc' => 'standard/standard_9.php',
'array_intersect_key' => 'standard/standard_9.php',
Expand All @@ -1695,6 +1697,7 @@ final class PhpStormStubsMap
'array_key_first' => 'standard/standard_9.php',
'array_key_last' => 'standard/standard_9.php',
'array_keys' => 'standard/standard_9.php',
'array_load_factor' => 'arraydebug/arraydebug.stub.php',
'array_map' => 'standard/standard_9.php',
'array_merge' => 'standard/standard_8.php',
'array_merge_recursive' => 'standard/standard_9.php',
Expand Down
9 changes: 9 additions & 0 deletions arraydebug/arraydebug.stub.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

/** @generate-function-entries */

function array_debuginfo(array $array) : array{}

function array_hash_distribution(array $array) : array{}

function array_load_factor(array $array) : float{}
1 change: 1 addition & 0 deletions tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class PhpCoreStubsProvider
],
'OTHERS' => [
'amqp',
'arraydebug',
'blackfire',
'cassandra',
'chunkutils2',
Expand Down

0 comments on commit c10f4c7

Please sign in to comment.