File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55class GA4Exception extends \Exception
66{
7- public function __construct (string $ message = "" , ? \ Throwable $ previous = null )
7+ public function __construct (string $ message = "" , $ previous = null )
88 {
99 parent ::__construct ($ message , 0 , $ previous );
1010 }
Original file line number Diff line number Diff line change 11<?php
22
33use AlexWestergaard \PhpGa4 \Analytics ;
4- use AlexWestergaard \PhpGa4 \GA4Exception ;
54use AlexWestergaard \PhpGa4 \Item ;
65use AlexWestergaard \PhpGa4 \UserProperty ;
6+ use AlexWestergaard \PhpGa4 \GA4Exception ;
77
88class AnalyticsTest extends \PHPUnit \Framework \TestCase
99{
@@ -60,7 +60,6 @@ public function testExceptionIfTimeOlderThanOffsetLimit()
6060
6161 try {
6262 $ this ->analytics ->setTimestamp (strtotime ('-1 week ' ));
63- $ this ->assertTrue (false , "Did not receive correct Exception " );
6463 } catch (GA4Exception $ e ) {
6564 $ this ->assertTrue (true );
6665 } catch (Exception $ e ) {
You can’t perform that action at this time.
0 commit comments