Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalErrorException in /home/wilder/public_html/vendor/symfony/translation/TranslatorInterface.php:24
0
Symfony\Component\Debug\Exception\FatalErrorException
/vendor/symfony/translation/TranslatorInterface.php24
/home/wilder/public_html/vendor/symfony/translation/TranslatorInterface.php
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
 
namespace Symfony\Component\Translation;
 
use Symfony\Component\Translation\Exception\InvalidArgumentException;
use Symfony\Contracts\Translation\LocaleAwareInterface;
 
/**
 * TranslatorInterface.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @deprecated since Symfony 4.2, use Symfony\Contracts\Translation\TranslatorInterface instead
 */
interface TranslatorInterface extends LocaleAwareInterface
{
    /**
     * Translates the given message.
     *
     * @param string $id The message id (may also be an object that can be cast to string)
     * @param array $parameters An array of parameters for the message
     * @param string|null $domain The domain for the message or null to use the default
     * @param string|null $locale The locale or null to use the default
     *
     * @return string The translated string
     *
     * @throws InvalidArgumentException If the locale contains invalid characters
     */
    public function trans($id, array $parameters = [], $domain = null, $locale = null);
 
    /**
     * Translates the given choice message by choosing a translation according to a number.
     *
     * @param string $id The message id (may also be an object that can be cast to string)
     * @param int $number The number to use to find the index of the message
Arguments
  1. "Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_REDIRECT_UNIQUE_ID
"ZgXyV6GkcsrcEwlBsy5pGwAAAAY"
REDIRECT_REDIRECT_SCRIPT_URL
"/wilders/main/category/156"
REDIRECT_REDIRECT_SCRIPT_URI
"https://wildersorganics.lk/wilders/main/category/156"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_SSL_TLS_SNI
"wildersorganics.lk"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"ZgXyV6GkcsrcEwlBsy5pGwAAAAY"
REDIRECT_SCRIPT_URL
"/wilders/main/category/156"
REDIRECT_SCRIPT_URI
"https://wildersorganics.lk/wilders/main/category/156"
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"wildersorganics.lk"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgXyV6GkcsrcEwlBsy5pGwAAAAY"
SCRIPT_URL
"/wilders/main/category/156"
SCRIPT_URI
"https://wildersorganics.lk/wilders/main/category/156"
HTTPS
"on"
SSL_TLS_SNI
"wildersorganics.lk"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_HOST
"wildersorganics.lk"
HTTP_X_HTTPS
"1"
PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"wildersorganics.lk"
SERVER_ADDR
"162.248.49.12"
SERVER_PORT
"443"
REMOTE_ADDR
"18.234.165.107"
DOCUMENT_ROOT
"/home/wilder/public_html"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/wilder/public_html"
SERVER_ADMIN
"webmaster@wildersorganics.lk"
SCRIPT_FILENAME
"/home/wilder/public_html/public/index.php"
REMOTE_PORT
"33314"
REDIRECT_URL
"/public/wilders/main/category/156"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/wilders/main/category/156"
SCRIPT_NAME
"/public/index.php"
PHP_SELF
"/public/index.php"
REQUEST_TIME_FLOAT
1711665751.396
REQUEST_TIME
1711665751
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler