Skip to content

Commit 7ec6d05

Browse files
authored
Merge pull request #400 from Roave/renovate/doctrine-coding-standard-14.x
Update dependency doctrine/coding-standard to v14
2 parents bc2ae54 + 5d90b6c commit 7ec6d05

10 files changed

Lines changed: 104 additions & 91 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"twig/twig": "^3.18.0"
2525
},
2626
"require-dev": {
27-
"doctrine/coding-standard": "^12.0.0",
27+
"doctrine/coding-standard": "^14.0.0",
2828
"phpunit/phpunit": "^12.0.10",
2929
"psalm/plugin-phpunit": "^0.19.2",
3030
"roave/security-advisories": "dev-latest",

composer.lock

Lines changed: 80 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Formatter/InlineCodeFromFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
final class InlineCodeFromFile implements PageFormatter
1919
{
20-
private const ALLOWED_CODE_TYPES = ['json'];
20+
private const array ALLOWED_CODE_TYPES = ['json'];
2121

2222
public function __construct(private string $contentPath, private readonly LoggerInterface $logger, private readonly RetrieveFileContents $retrieveFileContents)
2323
{

src/Formatter/RenderPlantUmlDiagramInline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
final class RenderPlantUmlDiagramInline implements PageFormatter
2626
{
2727
/** Note: this is added by the `Dockerfile` build, it no longer exists in the repo itself */
28-
private const PLANTUML_JAR = __DIR__ . '/../../bin/plantuml.jar';
28+
private const string PLANTUML_JAR = __DIR__ . '/../../bin/plantuml.jar';
2929

3030
public function __construct(private readonly LoggerInterface $logger)
3131
{

src/Formatter/ReplaceGithubMarkdownAlerts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
final class ReplaceGithubMarkdownAlerts implements PageFormatter
1818
{
19-
private const ALERT_FLAVOURS = [
19+
private const array ALERT_FLAVOURS = [
2020
'NOTE' => 'ℹ️',
2121
'TIP' => '💡',
2222
'IMPORTANT' => '⁉️',

src/Writer/ConfluenceWriter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
final class ConfluenceWriter implements OutputWriter
3535
{
3636
/** @link https://confluence.atlassian.com/doc/code-block-macro-139390.html */
37-
private const ALLOWED_CONFLUENCE_CODE_FORMATS = [
37+
private const array ALLOWED_CONFLUENCE_CODE_FORMATS = [
3838
'actionscript',
3939
'applescript',
4040
'bash',
@@ -64,7 +64,7 @@ final class ConfluenceWriter implements OutputWriter
6464
'yaml',
6565
];
6666

67-
private const CONFLUENCE_HEADER = '<p><strong style="color: #ff0000;">NOTE: This documentation is auto generated, do not edit this directly in Confluence, as your changes will be overwritten!</strong></p>';
67+
private const string CONFLUENCE_HEADER = '<p><strong style="color: #ff0000;">NOTE: This documentation is auto generated, do not edit this directly in Confluence, as your changes will be overwritten!</strong></p>';
6868

6969
private readonly string $confluenceContentApiUrl;
7070

0 commit comments

Comments
 (0)