Skip to content

Commit

Permalink
Fix: Mark object as immutabke
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 4, 2021
1 parent 0d4617d commit e91aa89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.x-dev@">
<file src="src/Formatter/ToMillisecondsDurationFormatter.php">
<ImpureMethodCall occurrences="1">
<code>toMilliseconds</code>
</ImpureMethodCall>
</file>
<file src="src/MaximumCount.php">
<UnusedParam occurrences="1">
<code>$value</code>
Expand Down
3 changes: 3 additions & 0 deletions src/Formatter/ToMillisecondsDurationFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

use PHPUnit\Event;

/**
* @psalm-immutable
*/
final class ToMillisecondsDurationFormatter implements Event\Telemetry\DurationFormatter
{
public function format(Event\Telemetry\Duration $duration): string
Expand Down

0 comments on commit e91aa89

Please sign in to comment.