File tree Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 4
4
convertNoticesToExceptions =" true"
5
5
convertWarningsToExceptions =" true"
6
6
convertErrorsToExceptions =" true"
7
- convertDeprecationsToExceptions =" false "
7
+ convertDeprecationsToExceptions =" true "
8
8
>
9
9
<testsuites >
10
10
<testsuite name =" Integration" >
Original file line number Diff line number Diff line change 13
13
14
14
namespace Laudis \Neo4j \Enum ;
15
15
16
+ use const E_DEPRECATED ;
17
+ use function error_reporting ;
16
18
use JsonSerializable ;
17
19
use Laudis \TypedEnum \TypedEnum ;
18
20
21
+ /**
22
+ * Turn of error reporting for class definition. PHP Users of 8.1 receive a deprectation warning otherwise but
23
+ * it is not fixable from the minimum version 7.4 as it required the "mixed" keyword.
24
+ */
25
+ $ oldReporting = error_reporting (error_reporting () ^ E_DEPRECATED );
26
+
19
27
/**
20
28
* Defines the access mode of a connection.
21
29
*
@@ -38,3 +46,8 @@ public function jsonSerialize()
38
46
return $ this ->getValue ();
39
47
}
40
48
}
49
+
50
+ /**
51
+ * Turn back on old error reporting after class definition.
52
+ */
53
+ error_reporting ($ oldReporting );
Original file line number Diff line number Diff line change 13
13
14
14
namespace Laudis \Neo4j \Enum ;
15
15
16
+ use const E_DEPRECATED ;
17
+ use function error_reporting ;
16
18
use JsonSerializable ;
17
19
use Laudis \Neo4j \Databags \SummaryCounters ;
18
20
use Laudis \TypedEnum \TypedEnum ;
19
21
22
+ /**
23
+ * Turn of error reporting for class definition. PHP Users of 8.1 receive a deprectation warning otherwise but
24
+ * it is not fixable from the minimum version 7.4 as it required the "mixed" keyword.
25
+ */
26
+ $ oldReporting = error_reporting (error_reporting () ^ E_DEPRECATED );
27
+
20
28
/**
21
29
* The actual type of query after is has been run.
22
30
*
@@ -67,3 +75,8 @@ public function jsonSerialize()
67
75
return $ this ->getValue ();
68
76
}
69
77
}
78
+
79
+ /**
80
+ * Turn back on old error reporting after class definition.
81
+ */
82
+ error_reporting ($ oldReporting );
Original file line number Diff line number Diff line change 17
17
use ArrayAccess ;
18
18
use ArrayIterator ;
19
19
use BadMethodCallException ;
20
+ use const E_DEPRECATED ;
21
+ use function error_reporting ;
20
22
use IteratorAggregate ;
21
23
use JsonSerializable ;
22
24
use OutOfBoundsException ;
23
25
use function sprintf ;
24
26
27
+ /**
28
+ * Turn of error reporting for class definition. PHP Users of 8.1 receive a deprectation warning otherwise but
29
+ * it is not fixable from the minimum version 7.4 as it required the "mixed" keyword.
30
+ */
31
+ $ oldReporting = error_reporting (error_reporting () ^ E_DEPRECATED );
32
+
25
33
/**
26
34
* Abstract immutable container with basic functionality to integrate easily into the driver ecosystem.
27
35
*
@@ -95,3 +103,8 @@ final public function offsetUnset($offset): void
95
103
throw new BadMethodCallException (sprintf ('%s is immutable ' , static ::class));
96
104
}
97
105
}
106
+
107
+ /**
108
+ * Turn back on old error reporting after class definition.
109
+ */
110
+ error_reporting ($ oldReporting );
You can’t perform that action at this time.
0 commit comments