Skip to content

Commit

Permalink
use \in_array instead of in_array
Browse files Browse the repository at this point in the history
  • Loading branch information
dcsg committed Mar 10, 2019
1 parent 881476d commit b972be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SetImmutableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected function __construct(array $elements)
{
$_elements = [];
foreach ($elements as $element) {
if (in_array($element, $_elements, true)) {
if (\in_array($element, $_elements, true)) {
throw new InvalidArgumentException('Duplicated element found.');
}

Expand Down

0 comments on commit b972be5

Please sign in to comment.