[5.0] Allow Passing Wildcards To App::environment()

Makes use of `str_is()`, so we can specify patterns like `App::environment('production-*')`.
Should be on one line : 
```php
$patterns = is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args();
```