Skip to content

Commit

Permalink
Fix for PHP 5.3 compatibility.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed Dec 30, 2014
1 parent f59a206 commit ae5b4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalExtension/Context/DrupalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function assertAuthenticatedByRole($role) {
$roles = explode(',', $role);
$roles = array_map('trim', $roles);
foreach ($roles as $role) {
if (!in_array(strtolower($role), ['authenticated', 'authenticated user'])) {
if (!in_array(strtolower($role), array('authenticated', 'authenticated user'))) {
// Only add roles other than 'authenticated user'.
$this->getDriver()->userAddRole($user, $role);
}
Expand Down

0 comments on commit ae5b4a0

Please sign in to comment.