Skip to content

Commit 8139ce4

Browse files
authored
Update Webhook.php
Fix deprecated warning in php 8.1 `Deprecated: filter_var(): Passing null to parameter #3 ($options) of type array|int is deprecated in /usr/local/var/www/mytiki.life-basic-upgrade/vendor/phpbu/phpbu/src/Log/Webhook.php on line 137`
1 parent 0b67e21 commit 8139ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Log/Webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function setup(array $options)
132132
// PHP >7.2 deprecated the filter options and enabled them by default
133133
$filterOptions = version_compare(PHP_VERSION, '7.2.0', '<')
134134
? FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED
135-
: null;
135+
: 0;
136136

137137
if (!filter_var($options['uri'], FILTER_VALIDATE_URL, $filterOptions)) {
138138
throw new Exception('webhook URI is invalid');

0 commit comments

Comments
 (0)