diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-05-10 13:51:33 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-05-10 13:51:41 +0100 |
| commit | 1b3a2c1be89b4ae2ef86e9a6a9b13bdba3fb8608 (patch) | |
| tree | 3fbf74af08864ed972ecd60d164d17c88ec9e6c0 /app/Webtrees.php | |
| parent | 43e1e52ea12832436d1f82f1484c2e8b5e9ce984 (diff) | |
| download | webtrees-1b3a2c1be89b4ae2ef86e9a6a9b13bdba3fb8608.tar.gz webtrees-1b3a2c1be89b4ae2ef86e9a6a9b13bdba3fb8608.tar.bz2 webtrees-1b3a2c1be89b4ae2ef86e9a6a9b13bdba3fb8608.zip | |
Ignore deprecations from third-party libraries when using PHP 8.4
Diffstat (limited to 'app/Webtrees.php')
| -rw-r--r-- | app/Webtrees.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Webtrees.php b/app/Webtrees.php index eb8ca732a0..7ec5b9a3e7 100644 --- a/app/Webtrees.php +++ b/app/Webtrees.php @@ -125,7 +125,8 @@ class Webtrees public const DEBUG = self::STABILITY !== ''; // We want to know about all PHP errors during development, and fewer in production. - public const ERROR_REPORTING = self::DEBUG ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; + // Several of our libaries (e.g. laravel) give deprecations for PHP 8.4, and won't be fixed. + public const ERROR_REPORTING = (self::DEBUG && PHP_VERSION_ID < 80400)? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; // Page layouts for various page types. public const LAYOUT_ADMINISTRATION = 'layouts/administration'; |
