We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cffb82e commit 03c8d38Copy full SHA for 03c8d38
src/Log/Webhook.php
@@ -130,11 +130,9 @@ public function setup(array $options)
130
}
131
132
// PHP >7.2 deprecated the filter options and enabled them by default
133
- if (version_compare(PHP_VERSION, '7.2.0', '<')) {
134
- $filterOptions = FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED;
135
- } else {
136
- $filterOptions = null;
137
- }
+ $filterOptions = version_compare(PHP_VERSION, '7.2.0', '<')
+ ? FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED
+ : null;
138
139
if (!filter_var($options['uri'], FILTER_VALIDATE_URL, $filterOptions)) {
140
throw new Exception('webhook URI is invalid');
0 commit comments