Skip to content

There's not always a Stack on the Collector #133

Closed
@dkvk

Description

@dkvk
Q A
Bug? yes
New Feature? no
Version 1.4.0

In some cases the call to getCurrentStack() on the collector can return false. https://github.com/php-http/HttplugBundle/blob/master/Collector/Collector.php#L67-L70
This happens when there has not been any Stack added to the Collector and end() only returns false

This results in a break when it's not taken in consideration here: https://github.com/php-http/HttplugBundle/blob/master/Collector/ProfilePlugin.php#L61

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions