Skip to content

Commit 9be5c02

Browse files
authored
rename _toStringFormat as chronos v4 allows it now (#392)
1 parent 8ae670c commit 9be5c02

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

config/rector/sets/cakephp60.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,9 @@
243243
'I18n' => [
244244
'Cake\I18n\MessagesFileLoader' => ['_name', '_plugin', '_locale', '_extension'],
245245
'Cake\I18n\ChainMessagesLoader' => ['_loaders'],
246-
// Can't rename _toStringFormat as it conflicts with ChronosDate::toStringFormat
247-
'Cake\I18n\Date' => ['_jsonEncodeFormat'],
248-
// Can't rename _toStringFormat as it conflicts with Chronos::toStringFormat
249-
'Cake\I18n\DateTime' => ['_jsonEncodeFormat'],
250-
// Can't rename _toStringFormat as it conflicts with ChronosTime::toStringFormat
251-
'Cake\I18n\Time' => ['_jsonEncodeFormat'],
246+
'Cake\I18n\Date' => ['_toStringFormat', '_jsonEncodeFormat'],
247+
'Cake\I18n\DateTime' => ['_toStringFormat', '_jsonEncodeFormat'],
248+
'Cake\I18n\Time' => ['_toStringFormat', '_jsonEncodeFormat'],
252249
'Cake\I18n\I18n' => ['_collection', '_defaultLocale'],
253250
'Cake\I18n\Number' => ['_formatters', '_defaultCurrency', '_defaultCurrencyFormat'],
254251
'Cake\I18n\PluralRules' => ['_rulesMap'],

0 commit comments

Comments
 (0)