Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

DeprecationNoticeSupressor.php
Go to the documentation of this file.
1 <?php
2
7 namespace EzSystems\PlatformBehatBundle\Context\SubContext;
8
9 trait DeprecationNoticeSupressor
10 {
14 private $originalErrorReporting;
15
19 public function suppressDepreciationNotices()
20 {
21 $this->originalErrorReporting = error_reporting(E_ALL & ~E_USER_DEPRECATED);
22 }
23
27 public function restoreErrorReporting()
28 {
29 error_reporting($this->originalErrorReporting);
30 }
31 }
EzSystems\PlatformBehatBundle\Context\SubContext
Definition: DeprecationNoticeSupressor.php:7
EzSystems\PlatformBehatBundle\Context\SubContext\suppressDepreciationNotices
suppressDepreciationNotices()
@BeforeScenario
Definition: DeprecationNoticeSupressor.php:19
EzSystems\PlatformBehatBundle\Context\SubContext\DeprecationNoticeSupressor
trait DeprecationNoticeSupressor
Definition: DeprecationNoticeSupressor.php:10
EzSystems\PlatformBehatBundle\Context\SubContext\restoreErrorReporting
restoreErrorReporting()
@AfterScenario
Definition: DeprecationNoticeSupressor.php:27
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.