Skip to content
Permalink
Browse files

Fix sorting

  • Loading branch information
muglug committed Jan 8, 2020
1 parent 6b43c41 commit eb7a8ae8d2f33527bcb57aeaa24977bb89e36d3f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Psalm/Internal/Stubs/Generator/StubsGenerator.php
@@ -76,7 +76,7 @@ public static function getAll(

$namespace_name = implode('\\', $name_parts);

$namespaced_nodes[$namespace_name][] = self::getFunctionNode(
$namespaced_nodes[$namespace_name][$fq_name] = self::getFunctionNode(
$function_storage,
$function_name,
$namespace_name
@@ -106,7 +106,7 @@ public static function getAll(

$namespace_name = implode('\\', $name_parts);

$namespaced_nodes[$namespace_name][] = self::getFunctionNode(
$namespaced_nodes[$namespace_name][$fq_name] = self::getFunctionNode(
$function_storage,
$function_name,
$namespace_name
@@ -119,7 +119,7 @@ public static function getAll(
$namespace_stmts = [];

foreach ($namespaced_nodes as $namespace_name => $stmts) {
ksort($namespace_stmts);
ksort($stmts);

$namespace_stmts[] = new PhpParser\Node\Stmt\Namespace_(
$namespace_name ? new PhpParser\Node\Name($namespace_name) : null,

0 comments on commit eb7a8ae

Please sign in to comment.
You can’t perform that action at this time.