dependabot[bot] opened a new pull request, #3: URL: https://github.com/apache/openoffice-forums/pull/3
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 4.0.1 to 4.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/releases">squizlabs/php_codesniffer's releases</a>.</em></p> <blockquote> <h2>4.0.2 - 2026-08-06</h2> <p><strong>This is a security release and all users are advised to update their install(s) as soon as possible.</strong> The security issue only affects users of the <code>Gitblame</code>, <code>Hgblame</code> or <code>Svnblame</code> report(s).</p> <h3>Added</h3> <ul> <li>Tokenizer support for the PHP 8.5 <code>(void)</code> cast. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1325">#1325</a> The <code>T_VOID_CAST</code> token has been added to the <code>Tokens::CAST_TOKENS</code> array.</li> <li><code>suggest</code> section to the <code>composer.json</code> file to inform users about the recommended <code>iconv</code> and <code>pcntl</code> PHP extensions. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1388">#1388</a> <ul> <li>Thanks to <a href="https://github.com/rodrigoprimo">Rodrigo Primo</a> for the patch.</li> </ul> </li> </ul> <h3>Changed</h3> <ul> <li>Clarified that <code>libxml</code> is a required PHP extension. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1409">#1409</a></li> <li>Squiz.Scope.StaticThisUsage: the sniff will now also search for the use of <code>$this</code> in static closures. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1377">#1377</a></li> <li>The Generic.PHP.LowerCaseKeyword, Generic.WhiteSpace.LanguageConstructSpacing and Squiz.Functions.FunctionDeclarationArgumentSpacing sniffs no longer embed UTF-8 middot characters for spaces in error messages. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1379">#1379</a>, <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1389">#1389</a> Fixes [Squiz/<a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/2652">#2652</a>](<a href="https://redirect.github.com/squizlabs/PHP_CodeSniffer/issues/2652">squizlabs/PHP_CodeSniffer#2652</a>). <ul> <li>Thanks to <a href="https://github.com/rodrigoprimo">Rodrigo Primo</a> for the patches.</li> </ul> </li> <li>PSR2.ControlStructures.SwitchDeclaration: the error message for the use of colon + curly braces (<code>WrongOpener*</code>) has been made more informative. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1358">#1358</a>. Fixes <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1322">#1322</a>. <ul> <li>Thanks to <a href="https://github.com/bigdevlarry">Sule-Balogun Olanrewaju</a> for the patch.</li> </ul> </li> <li>The error messages for the following sniffs have been improved by exposing more data placeholders: <ul> <li><code>PEAR.Functions.FunctionDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1445">#1445</a> <ul> <li>The <code>CloseBracketLine</code> error message now exposes 1 data value (previously 0).</li> <li>The <code>EmptyLine</code> error message now exposes 1 data value (previously 0).</li> <li>The <code>Indent</code> error message now exposes 3 data values (previously 2).</li> <li>These changes also affect the same error codes for the <code>PSR12.Classes.AnonClassDeclaration</code> and <code>Squiz.Functions.MultiLineFunctionDeclaration</code> sniffs.</li> </ul> </li> <li><code>PSR2.Classes.ClassDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1446">#1446</a> <ul> <li>The <code>ExtendsLine</code> and <code>ImplementsLine</code> error messages now expose 3 data values (previously 1).</li> <li>The <code>SpaceBeforeExtends</code> and <code>SpaceBeforeImplements</code> error messages now expose 2 data values (previously 1).</li> <li>These changes also affect the same error codes for the <code>PSR12.Classes.AnonClassDeclaration</code> and <code>Squiz.Classes.ClassDeclaration</code> sniffs.</li> </ul> </li> <li><code>PSR2.ControlStructures.SwitchDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1447">#1447</a> <ul> <li>The <code>defaultNotLower</code> and <code>caseNotLower</code> error messages now expose 3 data values (previously 2).</li> <li>The <code>SpaceBeforeColonDEFAULT</code> and <code>SpaceBeforeColonCASE</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>BodyOnNextLineDEFAULT</code> and <code>BodyOnNextLineCASE</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>WrongOpenerdefault</code> and <code>WrongOpenercase</code> error messages now expose 1 data value (previously 0).</li> </ul> </li> <li><code>Squiz.ControlStructures.SwitchDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1449">#1449</a> <ul> <li>The <code>CaseNotLower</code> and <code>DefaultNotLower</code> error messages now expose 3 data values (previously 2).</li> <li>The <code>CaseIndent</code> and <code>DefaultIndent</code> error messages now expose 2 data values (previously 0).</li> <li>The <code>SpaceBeforeColonCase</code> and <code>SpaceBeforeColonDefault</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>BreakIndent</code> error message now exposes 1 data value (previously 0).</li> <li>The <code>SpacingAfterCase</code> and <code>SpacingAfterDefault</code> error messages now expose 1 data value (previously 0).</li> </ul> </li> <li><code>Squiz.Functions.FunctionDeclarationArgumentSpacing</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1452">#1452</a> <ul> <li>The <code>SpaceBeforeEquals</code> error message now exposes 3 data values (previously 2).</li> <li>The <code>SpaceAfterEquals</code> error message now exposes 3 data values (previously 2).</li> </ul> </li> <li><code>Squiz.Functions.MultiLineFunctionDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1453">#1453</a> <ul> <li>The <code>FirstParamSpacing</code> and <code>UseFirstParamSpacing</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>OneParamPerLine</code> and <code>UseOneParamPerLine</code> error messages now expose 1 data value (previously 0).</li> <li>These changes also affect the same error codes for the <code>PSR12.Classes.AnonClassDeclaration</code> sniff.</li> </ul> </li> <li>If you have customised the error messages of these sniffs, please review your ruleset after upgrading.</li> <li>Thanks to <a href="https://github.com/ntdiary">Zhang WenTao</a> for these patches.</li> </ul> </li> <li>The following sniff(s) have received efficiency improvements: <ul> <li>PSR2.Classes.PropertyDeclaration</li> <li>Thanks to <a href="https://github.com/jrchamp">Jonathan Champ</a> for the patch.</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/4.x/CHANGELOG-4.x.md">squizlabs/php_codesniffer's changelog</a>.</em></p> <blockquote> <h2>[4.0.2] - 2026-08-06</h2> <p><strong>This is a security release and all users are advised to update their install(s) as soon as possible.</strong> The security issue only affects users of the <code>Gitblame</code>, <code>Hgblame</code> or <code>Svnblame</code> report(s).</p> <h3>Added</h3> <ul> <li>Tokenizer support for the PHP 8.5 <code>(void)</code> cast. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1325">#1325</a> The <code>T_VOID_CAST</code> token has been added to the <code>Tokens::CAST_TOKENS</code> array.</li> <li><code>suggest</code> section to the <code>composer.json</code> file to inform users about the recommended <code>iconv</code> and <code>pcntl</code> PHP extensions. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1388">#1388</a> <ul> <li>Thanks to [Rodrigo Primo][<a href="https://github.com/rodrigoprimo"><code>@rodrigoprimo</code></a>] for the patch.</li> </ul> </li> </ul> <h3>Changed</h3> <ul> <li>Clarified that <code>libxml</code> is a required PHP extension. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1409">#1409</a></li> <li>Squiz.Scope.StaticThisUsage: the sniff will now also search for the use of <code>$this</code> in static closures. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1377">#1377</a></li> <li>The Generic.PHP.LowerCaseKeyword, Generic.WhiteSpace.LanguageConstructSpacing and Squiz.Functions.FunctionDeclarationArgumentSpacing sniffs no longer embed UTF-8 middot characters for spaces in error messages. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1379">#1379</a>, <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1389">#1389</a> Fixes [Squiz/<a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/2652">#2652</a>][sq-2652]. <ul> <li>Thanks to [Rodrigo Primo][<a href="https://github.com/rodrigoprimo"><code>@rodrigoprimo</code></a>] for the patches.</li> </ul> </li> <li>PSR2.ControlStructures.SwitchDeclaration: the error message for the use of colon + curly braces (<code>WrongOpener*</code>) has been made more informative. <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1358">#1358</a>. Fixes <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1322">#1322</a>. <ul> <li>Thanks to [Sule-Balogun Olanrewaju][<a href="https://github.com/bigdevlarry"><code>@bigdevlarry</code></a>] for the patch.</li> </ul> </li> <li>The error messages for the following sniffs have been improved by exposing more data placeholders: <ul> <li><code>PEAR.Functions.FunctionDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1445">#1445</a> <ul> <li>The <code>CloseBracketLine</code> error message now exposes 1 data value (previously 0).</li> <li>The <code>EmptyLine</code> error message now exposes 1 data value (previously 0).</li> <li>The <code>Indent</code> error message now exposes 3 data values (previously 2).</li> <li>These changes also affect the same error codes for the <code>PSR12.Classes.AnonClassDeclaration</code> and <code>Squiz.Functions.MultiLineFunctionDeclaration</code> sniffs.</li> </ul> </li> <li><code>PSR2.Classes.ClassDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1446">#1446</a> <ul> <li>The <code>ExtendsLine</code> and <code>ImplementsLine</code> error messages now expose 3 data values (previously 1).</li> <li>The <code>SpaceBeforeExtends</code> and <code>SpaceBeforeImplements</code> error messages now expose 2 data values (previously 1).</li> <li>These changes also affect the same error codes for the <code>PSR12.Classes.AnonClassDeclaration</code> and <code>Squiz.Classes.ClassDeclaration</code> sniffs.</li> </ul> </li> <li><code>PSR2.ControlStructures.SwitchDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1447">#1447</a> <ul> <li>The <code>defaultNotLower</code> and <code>caseNotLower</code> error messages now expose 3 data values (previously 2).</li> <li>The <code>SpaceBeforeColonDEFAULT</code> and <code>SpaceBeforeColonCASE</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>BodyOnNextLineDEFAULT</code> and <code>BodyOnNextLineCASE</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>WrongOpenerdefault</code> and <code>WrongOpenercase</code> error messages now expose 1 data value (previously 0).</li> </ul> </li> <li><code>Squiz.ControlStructures.SwitchDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1449">#1449</a> <ul> <li>The <code>CaseNotLower</code> and <code>DefaultNotLower</code> error messages now expose 3 data values (previously 2).</li> <li>The <code>CaseIndent</code> and <code>DefaultIndent</code> error messages now expose 2 data values (previously 0).</li> <li>The <code>SpaceBeforeColonCase</code> and <code>SpaceBeforeColonDefault</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>BreakIndent</code> error message now exposes 1 data value (previously 0).</li> <li>The <code>SpacingAfterCase</code> and <code>SpacingAfterDefault</code> error messages now expose 1 data value (previously 0).</li> </ul> </li> <li><code>Squiz.Functions.FunctionDeclarationArgumentSpacing</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1452">#1452</a> <ul> <li>The <code>SpaceBeforeEquals</code> error message now exposes 3 data values (previously 2).</li> <li>The <code>SpaceAfterEquals</code> error message now exposes 3 data values (previously 2).</li> </ul> </li> <li><code>Squiz.Functions.MultiLineFunctionDeclaration</code> <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1453">#1453</a> <ul> <li>The <code>FirstParamSpacing</code> and <code>UseFirstParamSpacing</code> error messages now expose 1 data value (previously 0).</li> <li>The <code>OneParamPerLine</code> and <code>UseOneParamPerLine</code> error messages now expose 1 data value (previously 0).</li> <li>These changes also affect the same error codes for the <code>PSR12.Classes.AnonClassDeclaration</code> sniff.</li> </ul> </li> <li>If you have customised the error messages of these sniffs, please review your ruleset after upgrading.</li> <li>Thanks to [Zhang WenTao][<a href="https://github.com/ntdiary"><code>@ntdiary</code></a>] for these patches.</li> </ul> </li> <li>The following sniff(s) have received efficiency improvements: <ul> <li>PSR2.Classes.PropertyDeclaration</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/74ee2d4df09b70996c1e0fafca7079fc0bbb9ec0"><code>74ee2d4</code></a> Merge pull request <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1475">#1475</a> from PHPCSStandards/feature/changelog-4.0.2</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/2f4a106e00c54cf102fd9e26bc199e5334569402"><code>2f4a106</code></a> Changelog for the 4.0.2 release</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/03d536873d4519603de54fc567035cf2b6fd46f9"><code>03d5368</code></a> Merge branch '3.x' into 4.x</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/4c378e1a528ea066890fc2397cbdd2f94eb2fc91"><code>4c378e1</code></a> Merge pull request <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1474">#1474</a> from PHPCSStandards/feature/changelog-3.13.6</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/f0e1ebb0563f0e5d7f190497a787bcaf8474f3fe"><code>f0e1ebb</code></a> Merge branch '3.x' into 4.x</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/ddbf849de04f603a58092c52c7beb4a3881700ff"><code>ddbf849</code></a> Merge pull request <a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1473">#1473</a> from PHPCSStandards/security/cve-2026-67434</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/742a068dcb971c5db5bdb87ee792fc4dee165474"><code>742a068</code></a> Changelog for the 3.13.6 release</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/7a3a6bbf153a03fa3a9413afc60bded6b764e76b"><code>7a3a6bb</code></a> Reports/*blame: properly escape file name</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/b90bca214aacf5329a10d214b780f0f9cd496907"><code>b90bca2</code></a> PSR2.Classes.PropertyDeclaration: add T_STATIC to tokens list</li> <li><a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/278f99405c7ecdb4243b9cdf4ccb5cb161626578"><code>278f994</code></a> Generic/MultipleStatementAlignment: fix multi-line chained assignment (<a href="https://redirect.github.com/PHPCSStandards/PHP_CodeSniffer/issues/1444">#1444</a>)</li> <li>Additional commits viewable in <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/4.0.1...4.0.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/openoffice-forums/network/alerts). </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
