PHP 8.3 Fatal error: Duplicate declaration of static variable

PHP 8.3 Fatal error: Duplicate declaration of static variable

Declaring the same static variable multiple times within the same scope will result in a Fatal Error since PHP 8.3. Example:

[Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

[Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

PHP 8.1 deprecated passing null to parameter #3 when using str_replace(). str_repace() is commonly used among developers to replace the one word with another in the string. Example: which replaces [ with { in the string $value. Since 8.1, if

× WhatsApp