<commit_before>﻿UPGRADE FROM 2.7 to 2.8
=======================

All components
--------------

* Symfony now requires the iconv extension to be present, which is the case by
  default in most environments. However, if you're not able to ensure this
  extension to be installed in your target environment, you can add Symfony's
  iconv polyfill to your project's composer.json file.

  ```json
  "require": {
      "symfony/polyfill-iconv": "~1.0"
  }
  ```

Form
----

 * The `intention` option was deprecated and will be removed in 3.0 in favor
   of the new `csrf_token_id` option.

 * The `csrf_provider` option was deprecated and will be removed in 3.0 in favor
   of the new `csrf_token_generator` option.

 * The "cascade_validation" option was deprecated. Use the "constraints"
   option together with the `Valid` constraint instead. Contrary to
   "cascade_validation", "constraints" must be set on the respective child forms,
   not the parent form.

   Before:

   ```php
   $form = $this->createFormBuilder($article, array('cascade_validation' => true))
       ->add('author', new AuthorType())
       ->getForm();
   ```
<commit_msg>[Form] fix option name in upgrade file<commit_after>﻿UPGRADE FROM 2.7 to 2.8
=======================

All components
--------------

* Symfony now requires the iconv extension to be present, which is the case by
  default in most environments. However, if you're not able to ensure this
  extension to be installed in your target environment, you can add Symfony's
  iconv polyfill to your project's composer.json file.

  ```json
  "require": {
      "symfony/polyfill-iconv": "~1.0"
  }
  ```

Form
----

 * The `intention` option was deprecated and will be removed in 3.0 in favor
   of the new `csrf_token_id` option.

 * The `csrf_provider` option was deprecated and will be removed in 3.0 in favor
   of the new `csrf_token_manager` option.

 * The "cascade_validation" option was deprecated. Use the "constraints"
   option together with the `Valid` constraint instead. Contrary to
   "cascade_validation", "constraints" must be set on the respective child forms,
   not the parent form.

   Before:

   ```php
   $form = $this->createFormBuilder($article, array('cascade_validation' => true))
       ->add('author', new AuthorType())
       ->getForm();
   ```

{'fraction_non_alphanumeric': 0.1244060475161987, 'fraction_numerical': 0.008639308855291577, 'mean_word_length': 3.46242774566474, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1013447', 'n_tokens_mistral': 695, 'n_tokens_neox': 649, 'n_words': 274}