Skip to content

Commit 702f4c5

Browse files
committed
correctly used error reporting suppression
1 parent 7ed51fd commit 702f4c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Enum/AccessMode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Turn of error reporting for class definition. PHP Users of 8.1 receive a deprectation warning otherwise but
2323
* it is not fixable from the minimum version 7.4 as it required the "mixed" keyword.
2424
*/
25-
$oldReporting = error_reporting(error_reporting() ^ E_DEPRECATED);
25+
$oldReporting = error_reporting(error_reporting() & ~E_DEPRECATED);
2626

2727
/**
2828
* Defines the access mode of a connection.

src/Enum/QueryTypeEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Turn of error reporting for class definition. PHP Users of 8.1 receive a deprectation warning otherwise but
2424
* it is not fixable from the minimum version 7.4 as it required the "mixed" keyword.
2525
*/
26-
$oldReporting = error_reporting(error_reporting() ^ E_DEPRECATED);
26+
$oldReporting = error_reporting(error_reporting() & ~E_DEPRECATED);
2727

2828
/**
2929
* The actual type of query after is has been run.

src/Types/AbstractCypherObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Turn of error reporting for class definition. PHP Users of 8.1 receive a deprectation warning otherwise but
2929
* it is not fixable from the minimum version 7.4 as it required the "mixed" keyword.
3030
*/
31-
$oldReporting = error_reporting(error_reporting() ^ E_DEPRECATED);
31+
$oldReporting = error_reporting(error_reporting() & ~E_DEPRECATED);
3232

3333
/**
3434
* Abstract immutable container with basic functionality to integrate easily into the driver ecosystem.

0 commit comments

Comments
 (0)