diff --git a/UPGRADE-2.x.md b/UPGRADE-2.x.md deleted file mode 100644 index c9083ba5..00000000 --- a/UPGRADE-2.x.md +++ /dev/null @@ -1,53 +0,0 @@ -UPGRADE 2.x -=========== - -UPGRADE FROM 2.11 to 2.12 -========================= - -### Every twig filter is prefixed by `sonata_` - -- `format_date` is deprecated in favor of `sonata_format_date`. -- `format_time` is deprecated in favor of `sonata_format_time`. -- `format_datetime` is deprecated in favor of `sonata_format_datetime`. -- `number_format_*` is deprecated in favor of `sonata_number_format_*`. -- `country` is deprecated in favor of `sonata_country`. -- `locale` is deprecated in favor of `sonata_locale`. -- `language` is deprecated in favor of `sonata_language`. - -UPGRADE FROM 2.7 to 2.8 -======================= - -### Timezone detector - -``Sonata\IntlBundle\Timezone\TimezoneAwareInterface`` was added in order to provide -timezone detection for any user class. - -Timezone inference based on the ``Sonata\UserBundle\Model\User::getTimezone()`` method -is deprecated and will be dropped in 3.0 version. -You MUST implement ``Sonata\IntlBundle\Timezone\TimezoneAwareInterface`` explicitly -in your user class. - -Before: -```php -class User -{ - // ... -} -``` - -After: -```php -class User implements \Sonata\IntlBundle\Timezone\TimezoneAwareInterface -{ - // ... -} -``` - -UPGRADE FROM 2.3 to 2.4 -======================= - -### Tests - -All files under the ``Tests`` directory are now correctly handled as internal test classes. -You can't extend them anymore, because they are only loaded when running internal tests. -More information can be found in the [composer docs](https://getcomposer.org/doc/04-schema.md#autoload-dev). diff --git a/UPGRADE-3.x.md b/UPGRADE-3.x.md new file mode 100644 index 00000000..a8d6cd6a --- /dev/null +++ b/UPGRADE-3.x.md @@ -0,0 +1,2 @@ +UPGRADE 3.x +=========== diff --git a/composer.json b/composer.json index a89f89e0..d1c11d9d 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.18", "psalm/plugin-symfony": "^5.0", - "rector/rector": "^0.16", + "rector/rector": "^0.17", "symfony/phpunit-bridge": "^6.2", "symfony/security-core": "^5.4 || ^6.2", "vimeo/psalm": "^5.0"