Skip to content

v1.2.0

Compare
Choose a tag to compare
@nickvergessen nickvergessen released this 01 Feb 12:55
· 35 commits to master since this release
424cdd9

1.2.0 - 2024-02-01

Added

  • array_syntax: Force short syntax for array
  • list_syntax: Same for list
  • fully_qualified_strict_types: Remove namespace from classname when there is a use statement, and add missing backslash for global namespace
  • no_leading_import_slash: Remove leading slash from use statement
  • nullable_type_declaration_for_default_null_value: Add missing ? on type declaration for parameters defaulting to null. This will most likely be needed to avoid warnings in PHP 8.4.
  • yoda_style: forbid yoda style comparision. This replaces null === $a by $a === null.

What's Changed

  • Extend coding standard with new rules by @come-nc in #15

Full Changelog: v1.1.1...v1.2.0