Skip to content

Commit

Permalink
Merge pull request #2 from lphkxd/patch-2
Browse files Browse the repository at this point in the history
count($this->spans) 默认不为数组报类型错误。
  • Loading branch information
tmtbe authored Jun 12, 2019
2 parents b793d38 + 3a9c536 commit 4fcc198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tracing/SpanStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SpanStack
/**
* @var Span[]
*/
private $spans;
private $spans = [];
/**
* @var Tracer
*/
Expand Down Expand Up @@ -127,4 +127,4 @@ public static function get()
}
return $result;
}
}
}

0 comments on commit 4fcc198

Please sign in to comment.