Skip to content

Commit

Permalink
Merge pull request enjoping#15 from level-level/fix-imprecise-key-com…
Browse files Browse the repository at this point in the history
…parison

Fix non-strict key comparison
  • Loading branch information
enjoping authored Jan 28, 2021
2 parents 183c307 + 12bcd76 commit 07a5064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function __construct($name, $items = []) {
*/
public function addItem(BasicObject $item) {
$name = strtoupper($item->getName());
if (!in_array($name, $this->itemNames)) {
if (!in_array($name, $this->itemNames, true)) {
$this->itemNames[] = $name;
$this->items[] = $item;
} elseif ($this->name == 'tables') {
Expand Down

0 comments on commit 07a5064

Please sign in to comment.