Skip to content

Commit

Permalink
[Stopwatch] fix wrong nullable type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jul 29, 2019
1 parent 42a4284 commit 3891150
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

5.0.0
-----

* Removed support for passing `null` as 1st (`$id`) argument of `Section::get()` method, pass a valid child section identifier instead.

4.4.0
-----

Expand Down
2 changes: 1 addition & 1 deletion Stopwatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function openSection(string $id = null)
*
* @throws \LogicException When there's no started section to be stopped
*/
public function stopSection(?string $id)
public function stopSection(string $id)
{
$this->stop('__section__');

Expand Down

0 comments on commit 3891150

Please sign in to comment.