Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 20 Feb 07:49
6c24dc9

Added

  • Generic.PHP.ForbiddenFunctions config: forbids
    intval(), floatval(), strval(), and boolval().
    Use (int), (float), (string), and (bool) casts
    instead.
  • Apermo.Functions.ForbiddenNestedClosure sniff: warns
    when closures or arrow functions are nested inside other
    closures or arrow functions. Extract inner callbacks to
    named functions instead.