Skip to content

Commit b4a47f4

Browse files
committed
ignore deprecation warning in PHP 7.4
symfony/symfony#34807
1 parent 06ff709 commit b4a47f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/bootstrap.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3-
error_reporting(-1);
3+
if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 4) {
4+
// ignore deprecation warning in PHP 7.4
5+
// https://github.com/symfony/symfony/issues/34807
6+
error_reporting(-1 & ~E_DEPRECATED);
7+
} else {
8+
error_reporting(-1);
9+
}
410

511
require __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)