You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/WebPush.php
+1-8
Original file line number
Diff line number
Diff line change
@@ -72,20 +72,13 @@ public function __construct(array $auth = [], array $defaultOptions = [], ?int $
72
72
'mbstring' => '[WebPush] mbstring extension is not loaded but is required for sending push notifications with payload or for VAPID authentication. You can fix this in your php.ini.',
73
73
'openssl' => '[WebPush] openssl extension is not loaded but is required for sending push notifications with payload or for VAPID authentication. You can fix this in your php.ini.',
74
74
];
75
-
$phpVersion = phpversion();
76
-
if ($phpVersion && version_compare($phpVersion, '7.3.0', '<')) {
77
-
$extensions['gmp'] = '[WebPush] gmp extension is not loaded but is required for sending push notifications with payload or for VAPID authentication. You can fix this in your php.ini.';
78
-
}
75
+
79
76
foreach ($extensionsas$extension => $message) {
80
77
if (!extension_loaded($extension)) {
81
78
trigger_error($message, E_USER_WARNING);
82
79
}
83
80
}
84
81
85
-
if (ini_get('mbstring.func_overload') >= 2) {
86
-
trigger_error("[WebPush] mbstring.func_overload is enabled for str* functions. You must disable it if you want to send push notifications with payload or use VAPID. You can fix this in your php.ini.", E_USER_NOTICE);
0 commit comments