Page 1 of 1

PHP Version 8.4.24

Posted: 28 Sep 2026, 05:43
by christianch
Hi Karl,

I use latest release X3.34.2, but with php since 8.2 to 8.4
I meet an error: 
Deprecated: Twig_NodeVisitor_SafeAnalysis::intersectSafe(): Implicitly marking parameter $b as nullable is deprecated, the explicit nullable type must be used instead in /home/clients/3e1464e2d1ccdcc0b088eeff49550ae7/web/Bleau/app/parsers/Twig/NodeVisitor/SafeAnalysis.php on line 115
Coud you help me?
many thanks

Re: PHP Version 8.4.24

Posted: 29 Sep 2026, 11:17
by mjau-mjau
Hi Christian,
christianch wrote:
Deprecated: Twig_NodeVisitor_SafeAnalysis::intersectSafe(): Implicitly marking parameter $b as nullable is deprecated, the explicit nullable type must be used instead in /home/clients/3e1464e2d1ccdcc0b088eeff49550ae7/web/Bleau/app/parsers/Twig/NodeVisitor/SafeAnalysis.php on line 115
This is really just "deprecated notice" because you are using PHP 8.4. I will fix it in a maintenance release soon, but in the mean time, you would need to do one of the following:
  1. Downgrade to PHP 8.3.
  2. Suppress E_DEPRECATED notices from output (should be default on production servers).
AI instructions for #2:

---

You can remove this deprecation warning by filtering out
E_DEPRECATED notices in your PHP configuration or runtime code. If you have access to your php.ini file, update the error_reporting directive:
Code
error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
On production servers, you should also ensure warnings aren’t printed directly to the screen by setting:
Code
display_errors = Off
log_errors = On
If you use Apache .htaccess, you can set:
Code
php_value error_reporting 24575
php_flag display_errors Off

Re: PHP Version 8.4.24

Posted: 02 Oct 2026, 05:54
by PeteD
Hi,
I also had same issue but cleared my cache directory thru my host cpanel (not the web panel) and it cleared the error. So far no problems and the site is working on php 8.5. 

Your fix in the next version will probably be better but my work around might help someone else.

Looking forward to v4.... :)