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 ff4528e commit 538cc34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UPGRADE-5.0.md
Expand Up @@ -480,7 +480,7 @@ Serializer
Stopwatch
---------

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

Translation
-----------
Expand Down
5 changes: 5 additions & 0 deletions src/Symfony/Component/Stopwatch/CHANGELOG.md
@@ -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 src/Symfony/Component/Stopwatch/Stopwatch.php
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 538cc34

Please sign in to comment.