Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/finder/Comparator/Comparator.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
62 { | 62 { |
63 if (!$operator) { | 63 if (!$operator) { |
64 $operator = '=='; | 64 $operator = '=='; |
65 } | 65 } |
66 | 66 |
67 if (!in_array($operator, array('>', '<', '>=', '<=', '==', '!='))) { | 67 if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) { |
68 throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator)); | 68 throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator)); |
69 } | 69 } |
70 | 70 |
71 $this->operator = $operator; | 71 $this->operator = $operator; |
72 } | 72 } |