This week, the upcoming Symfony 5.1 version improved error messages in failing tests, added new form theme blocks to customize collections and the entire codebase started using the new get_debug_type() function thanks to the PHP 8 polyfill.

Symfony development highlights

This week, 63 pull requests were merged (44 in code and 19 in docs) and 42 issues were closed (25 in code and 17 in docs). Excluding merges, 29 authors made 3,926 additions and 1,211 deletions. See details for code and docs.

3.4 changelog:

  • 78b11a5: [FrameworkBundle] start session on flashbag injection
  • e29cdb7, 2baa812: fixed quotes in exception messages
  • 2c4c19c: [PropertyAccess] improved errors when reading uninitialized properties
  • 5f364af: [VarDumper] fixed side-effect by not using mt_rand()
  • 98da88f: [Process] prevent warning in proc_open()

4.4 changelog:

  • bd1aaf1: [Console] fallback to default answers when unable to read input
  • 7baec32: [DependencyInjection] fixed CheckTypeDeclarationPass
  • abefccf: [Security] don't require the session to be started when tracking its id
  • e457b24: [DependencyInjection] fixed preloading script generation
  • efb4a7f: [FrameworkBundle] fixed deprecation message for booting a kernel twice
  • 7866144: [FrameworkBundle] fixed router cache
  • 8397eb7: [Security] fixed hardcoded value of SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE

5.0 changelog:

  • 16ed2b9: [Notifier] added unit tests

Master changelog:

  • d5c4ba9: [HttpClient] made HttpClient::create() return an AmpHttpClient when amphp/http-client is found but curl is not or too old
  • 1897e03: [PhpUnitBridge] deprecate @expectedDeprecation annotation
  • 693cf11: [ErrorHandler] better error messages in failing tests
  • 0fb0371: [DependencyInjection] skip untyped properties in AutowireRequiredPropertiesPass
  • e0bddee: [Form] added a "choice_filter" option to ChoiceType
  • 06a1a1b: [Form] correctly round model with PercentType and add a rounding_mode option
  • b4f03d0: [Validator] add AtLeastOne constraint and validator
  • 34583b7: [String] add AbstractString::containsAny()
  • c650fe6: leverage PHP8's get_debug_type()
  • c0ee02b: [Form] added "collection_entry" block prefix to CollectionType entries
  • 6902a56: [PropertyAccess] added missing new args in PropertyAccessorBuilder
  • e383b41: [FrameworkBundle, PropertyAccess] use injection for info extractors
  • cda20aa: [FrameworkBundle, PropertyAccess] add missing argument placeholders
  • 836a72a: [Form] removed _false_is_empty flag in CheckboxType
  • 7e181b9: [FrameworkBundle, Routing] add link to source to router:match
  • 80672fb: [Uid] minor improvements

Symfony CLI

Symfony CLI is a must-have tool when developing Symfony applications on your local machine. It includes the Symfony Local Server, the best way to run local Symfony applications. This week Symfony CLI released its new 4.13.0, 4.13.1, 4.13.2, and 4.13.3 versions with the following changes:

  • Initial alpha support for ARM
  • Reveal global ansi, no-ansi and no-interaction flags
  • Add support for NO_COLOR env var (https://no-color.org/)
  • Fix SYMFONY_* environment values might not be read if flags are provided on the command line
  • Add clone-parent-data flag on env:create to enable/disable parent data cloning
  • Add if-not-exists flag on env:create to not fail when the environment already exists
  • Improve automatic detection of parent environment in env:create
  • Fix panic in env:create when specifying parent environment
  • Fix "no matching environment found for this project" error during env:create or when using the environment flag
  • Fix bin/phpunit is not found when running symfony new on Windows

Newest issues and pull requests

They talked about us

Call to Action

Published in #A week of symfony