AIT Blog theme - PHP 8.3/8.4 compatibility hardening (V2)
Date: 2026-09-16

Additional V2 fixes based on production debug.log:
- Safe handling of missing HTTP_REFERER and safe login-failure redirect.
- Guarded missing/null GPS metabox data in aitFixPostCoordinates().
- Declared NSafeStream::$context for PHP 8.2+ compatibility.
- Declared AIT admin renderer properties previously created dynamically.
- Declared AitLess/AitLessParser legacy runtime properties.
- Replaced preg_match() NULL flags with integer 0.
- Fixed implicit float-to-int behavior in legacy LESS color parsing.
- Fixed Nette float-to-int index conversion.
- Guarded strlen() calls against NULL output values.
- Updated legacy nullable type declarations needed by PHP 8.4.
- Replaced deprecated lcg_value() usage for PHP 8.4 compatibility.

Validation:
- All .php and .inc files pass php -l under PHP 8.4.23.
- AitLess compile smoke test passes with E_ALL and no warnings/deprecations.
- Embedded Nette load/random smoke test passes with E_ALL and no warnings/deprecations.

Install in a staging/backup-safe environment first. After activation, delete debug.log,
navigate front-end and wp-admin, and review the newly generated log.
