Skip to content

Commit 688816b

Browse files
authored
Merge pull request #162 from contentful/fix/PHP-137-regex-validation-issue
Fixed PHPCS issue
2 parents 54ccae3 + 2097edf commit 688816b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mapper/Role.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function mapPermissions(array $data): Permissions
122122
*/
123123
protected function convertPermission($permission)
124124
{
125-
if ($permission === []) {
125+
if ([] === $permission) {
126126
return null;
127127
}
128128

0 commit comments

Comments
 (0)