Skip to content

Update dependency dresscode/dresscode to v1.3.4 - #850

Merged
hrach merged 1 commit into
mainfrom
renovate/dresscode-dresscode-1.x
Nov 10, 2026
Merged

hrach merged 1 commit into
mainfrom
renovate/dresscode-dresscode-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dresscode/dresscode (source) 1.3.3 → 1.3.4 age confidence

Release Notes

dg/dresscode (dresscode/dresscode)

v1.3.4: Released version 1.3.4

Compare Source

✨ New Features

  • A check too long for one screen now ends with what to read first: the few decisions most of its violations break, with their counts, and how many of them dresscode fix repairs
  • file.invalidUtf8 – reports a byte that is no part of a UTF-8 character, as a file saved in another encoding has. Only reported, since the original encoding cannot be told from the bytes. forbidden in every standard
  • multiline.items.coalesce and multiline.items.pipe – a line of ?? or |> too wide spreads its operands as it does for the other operators, [perLine, fill] in every standard. nette leaves ?? out of the width, so ?? throw new … stays on the line of the value it guards
  • expressions.comparison.loose now fixes an integer compared with a float number and the other way round, writing the number in the type of the other operand: round($x) == 0 becomes round($x) === 0.0. Needs typeAnalysis: phpstan
  • upgrading.syntax.promotedProperties promotes a property with a doc comment too, moving the comment above the parameter, so a constructor no longer comes out half promoted
  • upgrading.functions.arrayFirstLast turns $posts ? reset($posts) : null into plain array_first($posts) and $x = explode(…); $x = end($x); into one $x = array_last(explode(…));. Its fix is risky only where the internal pointer or an empty array can really matter
  • comments.firstColumn: optional keeps a line commented out in the first column of an indented block where it stands. Under the default forbidden such a comment takes the indentation of the line below, now without doubling the indentation left after //

🐛 Bug Fixes

  • Upgrading follows the lowest version composer.json allows: what a later version of PHP or of a package deprecated is neither rewritten nor reported while the code must still run on the older one, where the replacement may be missing. Likewise @deprecated counts only in a package installed at its lowest allowed version
  • PHP templates keep their shape: braces.alternativeSyntax leaves <?php if ($a): ?> … <?php endif ?> around markup as it is, and braces.bracelessBody gives <?php foreach ($items as $v) echo $v; ?> its braces on that line instead of spreading the body through the markup
  • mistakes.invisibleCharacter leaves the no-break space U+00A0 in strings and comments, where typography puts it on purpose; in a name it is still reported
  • A key of dresscode.neon whose whole content is commented out loads as if it were not there
  • upgrading.api.replacedClasses and upgrading.declarations.deprecatedClass rewrite Old::class only as a risky fix where it is data (an operand of ===, a match arm, a needle of in_array(), an array key), as the new name changes what such code compares
  • With typeAnalysis: phpstan, a project whose bootstrapFiles load its own autoload with an older phpstan/phpdoc-parser runs without errors
  • upgrading.syntax.spreadForArrayMerge keeps the items of a merged array on the lines they stood on
  • A line too wide spreads more tidily around a ternary, around a call assigned before or, and or xor, and in the head of a foreach, whose iterated array spreads before what follows as

🛡️ Robustness

  • When an extension stops PHPStan from starting, the warning names its package and version and suggests updating it
  • On Windows, OPcache is off for the whole run, so a single process with JIT (--jobs 1) runs stable too
  • types.declaration.property reports every property of a grouped declaration, public $a, $b;
  • upgrading.php.nullArrayKey and upgrading.php.floatArrayKey no longer take the key of a loop over an empty array for null or a float
  • file.strictTypes.position no longer doubles the blank lines around a declaration it moves up to the opening tag, and multiline.semicolon accepts a semicolon below links of a chain commented out

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@hrach
hrach merged commit 3bc5585 into main Nov 10, 2026
15 checks passed
@hrach
hrach deleted the renovate/dresscode-dresscode-1.x branch November 10, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant