Welcome Guest, Not a member yet? Register   Sign In
Class 'Locale' not found
#8

(05-26-2020, 09:59 AM)vitnibel Wrote: If, with the constructor of the Time class, all parameters are passed explicitly, then most likely the call to the Locale :: getDefault () function due to which an error occurs can be avoided.

PHP Code:
class Time {
public function 
__construct(string $time null$timezone nullstring $locale null)
    {
        
// If no locale was provided, grab it from Locale (set by IncomingRequest for web requests)
        
$this->locale = ! empty($locale) ? $locale Locale::getDefault();


What I should to do now?
Reply


Messages In This Thread
Class 'Locale' not found - by maaa.om - 05-22-2020, 07:14 AM
RE: Class 'Locale' not found - by maaa.om - 05-25-2020, 08:40 AM
RE: Class 'Locale' not found - by dave friend - 05-26-2020, 06:05 AM
RE: Class 'Locale' not found - by maaa.om - 05-26-2020, 06:20 AM
RE: Class 'Locale' not found - by vitnibel - 05-26-2020, 09:35 AM
RE: Class 'Locale' not found - by maaa.om - 05-26-2020, 09:37 AM
RE: Class 'Locale' not found - by vitnibel - 05-26-2020, 09:59 AM
RE: Class 'Locale' not found - by maaa.om - 05-26-2020, 10:07 AM
RE: Class 'Locale' not found - by vitnibel - 05-26-2020, 10:34 AM
RE: Class 'Locale' not found - by maaa.om - 05-26-2020, 11:03 AM
RE: Class 'Locale' not found - by vitnibel - 05-26-2020, 07:09 PM
RE: Class 'Locale' not found - by maaa.om - 05-27-2020, 07:19 AM
RE: Class 'Locale' not found - by vitnibel - 05-27-2020, 09:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB