File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace Spatie \UptimeMonitor \Models \Traits ;
44
5- use Exception ;
65use Spatie \SslCertificate \SslCertificate ;
76use Spatie \UptimeMonitor \Events \CertificateCheckFailed ;
87use Spatie \UptimeMonitor \Events \CertificateCheckSucceeded ;
98use Spatie \UptimeMonitor \Events \CertificateExpiresSoon ;
109use Spatie \UptimeMonitor \Models \Enums \CertificateStatus ;
1110use Spatie \UptimeMonitor \Models \Monitor ;
11+ use Throwable ;
1212
1313trait SupportsCertificateCheck
1414{
@@ -18,7 +18,7 @@ public function checkCertificate(): void
1818 $ certificate = SslCertificate::createForHostName ($ this ->url ->getHost ());
1919
2020 $ this ->setCertificate ($ certificate );
21- } catch (Exception $ exception ) {
21+ } catch (Throwable $ exception ) {
2222 $ this ->setCertificateException ($ exception );
2323 }
2424 }
@@ -36,7 +36,7 @@ public function setCertificate(SslCertificate $certificate): void
3636 $ this ->fireEventsForUpdatedMonitorWithCertificate ($ this , $ certificate );
3737 }
3838
39- public function setCertificateException (Exception $ exception ): void
39+ public function setCertificateException (\ Throwable $ exception ): void
4040 {
4141 $ this ->certificate_status = CertificateStatus::INVALID ;
4242 $ this ->certificate_expiration_date = null ;
You can’t perform that action at this time.
0 commit comments