stephanecollot / DatetimepickerBundle

MIT License
57 stars 58 forks source link

PHP Fatal error: Using $this when not in object context #3

Closed dkorsak closed 10 years ago

dkorsak commented 10 years ago

On the PHP 5.3.10 there is error in the vendor/stephanecollot/datetimepicker-bundle/SC/DatetimepickerBundle/Form/Type/DatetimeType.php on line 76 PHP Fatal error: Using $this when not in object context

You can not use

return $this->convertMalotToIntlFormater( $options['pickerOptions']['format'] );

The solution is create "static public function convertMalotToIntlFormater" and call

DatetimeType::convertMalotToIntlFormater

dkorsak commented 10 years ago

ping

stephanecollot commented 10 years ago

Thanks for the feedback, I planned to correct it in 2 weeks (I'm busy, but I can do it more quickly)

2014-04-22 9:59 GMT+02:00 Daniel Korsak notifications@github.com:

ping

— Reply to this email directly or view it on GitHubhttps://github.com/stephanecollot/DatetimepickerBundle/issues/3#issuecomment-41013295 .

stephanecollot commented 10 years ago

Thanks, Daniel ! https://github.com/stephanecollot/DatetimepickerBundle/pull/4