When building from aggregated violations, the list of allowed domains will contain many duplicate entries. This PR is the most simple fix to remove the duplication.
Preferably, a public function hasSource(string $directive, string $path): bool would be available to prevent adding in the first place, but array_unique will do the trick for now.
When building from aggregated violations, the list of allowed domains will contain many duplicate entries. This PR is the most simple fix to remove the duplication.
Preferably, a
public function hasSource(string $directive, string $path): bool
would be available to prevent adding in the first place, but array_unique will do the trick for now.