Modify \yii\helpers\BaseFileHelper::createDirectory

```
bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = false [, resource $context ]]] )
```

the resource parameter is supported with php 5.0.0