Skip to content

Commit

Permalink
fix PropertyBag
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 20, 2021
1 parent 1a0fb22 commit fcac994
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ using the [Keep a CHANGELOG](http://keepachangelog.com) principles.

## [Unreleased]

## [1.0.1] - 2021-12-20

### Fixed

- clean-up code in `PropertyBag` because duplicated keys is not possible

## [1.0.0] - 2021-11-09

Implements full [SARIF specifications 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html)

[unreleased]: https://github.com/llaville/sarif-php-sdk/compare/1.0.1...HEAD
[1.0.1]: https://github.com/llaville/php-compat-info/compare/1.0.0...1.0.1
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# What is the SARIF PHP SDK ?
# About

This PHP SDK produces the SARIF output, which is a JSON file formatted
in accordance with the latest [specification](https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html).
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/PropertyBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace Bartlett\Sarif\Definition;

use JsonSerializable;
use function array_unique;

/**
* Key/value pairs that provide additional information about the object.
Expand Down Expand Up @@ -42,6 +41,6 @@ public function addProperty(string $key, $value): void
*/
public function jsonSerialize(): array
{
return array_unique($this->tags);
return $this->tags;
}
}

0 comments on commit fcac994

Please sign in to comment.