From 06ad59ab757df664899c5f826544cd76352ffda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 6 Apr 2021 21:25:58 +0200 Subject: [PATCH 1/2] Declare past, current and upcoming branches This should allow us to have up-to-date documentation. --- .doctrine-project.json | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.doctrine-project.json b/.doctrine-project.json index 5f7ea66e..8139a7fa 100644 --- a/.doctrine-project.json +++ b/.doctrine-project.json @@ -10,11 +10,41 @@ "slug": "latest", "upcoming": true }, + { + "name": "0.5", + "branchName": "0.5.x", + "slug": "0.5", + "upcoming": true + }, + { + "name": "0.4", + "branchName": "0.4.x", + "slug": "0.4", + "current": true + }, + { + "name": "0.3", + "branchName": "0.3.x", + "slug": "0.3", + "maintained": false + }, + { + "name": "0.2", + "branchName": "0.2.x", + "slug": "0.2", + "maintained": false + }, + { + "name": "0.2", + "branchName": "0.2.x", + "slug": "0.2", + "maintained": false + }, { "name": "0.1", "branchName": "0.1.x", "slug": "0.1", - "current": true + "maintained": false } ] } From 43953429c0e15416f3fa9c33b6b6bb15c8090b45 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Mon, 26 Apr 2021 09:46:40 +0200 Subject: [PATCH 2/2] Add configuration option to support github output (#149) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Grégoire Paris --- lib/Configuration.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/Configuration.php b/lib/Configuration.php index 62cb0f07..e2126636 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -27,7 +27,9 @@ class Configuration { - public const THEME_DEFAULT = 'default'; + public const THEME_DEFAULT = 'default'; + public const OUTPUT_FORMAT_CONSOLE = 'console'; + public const OUTPUT_FORMAT_GITHUB = 'github'; /** @var string */ private $cacheDir; @@ -53,6 +55,9 @@ class Configuration /** @var bool */ private $warningsAsError = false; + /** @psalm-var self::OUTPUT_FORMAT_* */ + private $outputFormat = self::OUTPUT_FORMAT_CONSOLE; + /** @var bool */ private $ignoreInvalidReferences = false; @@ -227,6 +232,22 @@ public function isWarningsAsError(): bool return $this->warningsAsError; } + /** + * @psalm-return self::OUTPUT_FORMAT_* + */ + final public function getOutputFormat(): string + { + return $this->outputFormat; + } + + /** + * @psalm-param self::OUTPUT_FORMAT_* $outputFormat + */ + final public function setOutputFormat(string $outputFormat): void + { + $this->outputFormat = $outputFormat; + } + public function getIgnoreInvalidReferences(): bool { return $this->ignoreInvalidReferences;