From 8b8a59a09724c2e36de60f2c2de97d2c15d1ad18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 7 Apr 2021 23:05:29 +0300 Subject: [PATCH 1/7] Reformat changelog to use reflinks in changelog entries --- CHANGELOG.md | 73 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16c15e5..ba91ead 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,35 +12,46 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added -- Allow for multi-part file extensions to be passed using -e (like `-e php,php.dist`) from [@jrfnl](https://github.com/jrfnl). -- Added syntax error callback [#30](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/30) from [@arxeiss](https://github.com/arxeiss). -- Ignore PHP startup errors [#34](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/34) from [@jrfnl](https://github.com/jrfnl). -- Restore php 5.3 support [#51](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/51) from [@glensc](https://github.com/glensc). +- Allow for multi-part file extensions to be passed using -e (like `-e php,php.dist`) from [@jrfnl]. +- Added syntax error callback [#30] from [@arxeiss]. +- Ignore PHP startup errors [#34] from [@jrfnl]. +- Restore php 5.3 support [#51] from [@glensc]. ### Fixed -- Determine skip lint process failure by status code instead of stderr content [#48](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/48) from [@jankonas](https://github.com/jankonas). +- Determine skip lint process failure by status code instead of stderr content [#48] from [@jankonas]. ### Changed -- Improve wording in the readme [#52](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/52) from [@glensc](https://github.com/glensc). +- Improve wording in the readme [#52] from [@glensc]. ### Internal -- Normalized composer.json from [@OndraM](https://github.com/OndraM). -- Updated PHPCS dependency from [@jrfnl](https://github.com/jrfnl). -- Cleaned coding style from [@jrfnl](https://github.com/jrfnl). -- Provide one true way to run the test suite [#37](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/37) from [@mfn](https://github.com/mfn). -- Travis: add build against PHP 8.0 and fix failing test [#41](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/41) from [@jrfnl](https://github.com/jrfnl). -- GitHub Actions for testing, and automatic phar creation [#46](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/46) from [@roelofr](https://github.com/roelofr). -- Add .github folder to .gitattributes export-ignore [#54](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/54) from [@glensc](https://github.com/glensc). -- Suggest to curl composer install via HTTPS [#53](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/53) from [@reedy](https://github.com/reedy). -- GH Actions: allow for manually triggering a workflow [#55](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/55) from [@jrfnl](https://github.com/jrfnl). -- GH Actions: fix phar creation [#55](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/55) from [@jrfnl](https://github.com/jrfnl). -- GH Actions: run the tests against all supported PHP versions [#55](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/55) from [@jrfnl](https://github.com/jrfnl). -- GH Actions: report CS violations in the PR [#55](https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/55) from [@jrfnl](https://github.com/jrfnl). +- Normalized composer.json from [@OndraM]. +- Updated PHPCS dependency from [@jrfnl]. +- Cleaned coding style from [@jrfnl]. +- Provide one true way to run the test suite [#37] from [@mfn]. +- Travis: add build against PHP 8.0 and fix failing test [#41] from [@jrfnl]. +- GitHub Actions for testing, and automatic phar creation [#46] from [@roelofr]. +- Add .github folder to .gitattributes export-ignore [#54] from [@glensc]. +- Suggest to curl composer install via HTTPS [#53] from [@reedy]. +- GH Actions: allow for manually triggering a workflow [#55] from [@jrfnl]. +- GH Actions: fix phar creation [#55] from [@jrfnl]. +- GH Actions: run the tests against all supported PHP versions [#55] from [@jrfnl]. +- GH Actions: report CS violations in the PR [#55] from [@jrfnl]. [1.3.0]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.2.0...v1.3.0 +[#30]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/30 +[#34]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/34 +[#37]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/37 +[#41]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/41 +[#46]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/46 +[#48]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/48 +[#51]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/51 +[#52]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/52 +[#53]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/53 +[#54]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/54 +[#55]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/55 ## [1.2.0] - 2020-04-04 @@ -50,17 +61,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed -- Fixed vendor location for running from other folder from [@Erkens](https://github.com/Erkens). +- Fixed vendor location for running from other folder from [@Erkens]. ### Internal -- Added a .gitattributes file from [@jrfnl](https://github.com/jrfnl), thanks for issue to [@ondrejmirtes](https://github.com/ondrejmirtes). -- Fixed incorrect unit tests from [@jrfnl](https://github.com/jrfnl). -- Fixed minor grammatical errors from [@jrfnl](https://github.com/jrfnl). -- Added Travis: test against nightly (= PHP 8) from [@jrfnl](https://github.com/jrfnl). -- Travis: removed sudo from [@jrfnl](https://github.com/jrfnl). +- Added a .gitattributes file from [@jrfnl], thanks for issue to [@ondrejmirtes]. +- Fixed incorrect unit tests from [@jrfnl]. +- Fixed minor grammatical errors from [@jrfnl]. +- Added Travis: test against nightly (= PHP 8) from [@jrfnl]. +- Travis: removed sudo from [@jrfnl]. - Added info about installing like not a dependency. - Cleaned readme - new organization from previous package. -- Added checklist for new version from [@szepeviktor](https://github.com/szepeviktor). +- Added checklist for new version from [@szepeviktor]. [1.2.0]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.1.0...v1.2.0 + +[@Erkens]: https://github.com/Erkens +[@OndraM]: https://github.com/OndraM +[@arxeiss]: https://github.com/arxeiss +[@glensc]: https://github.com/glensc +[@jankonas]: https://github.com/jankonas +[@jrfnl]: https://github.com/jrfnl +[@mfn]: https://github.com/mfn +[@ondrejmirtes]: https://github.com/ondrejmirtes +[@reedy]: https://github.com/reedy +[@roelofr]: https://github.com/roelofr +[@szepeviktor]: https://github.com/szepeviktor From 2c07745e5273afda7c7869050aac93eee8ff1762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Make=C5=A1?= Date: Wed, 5 May 2021 20:16:59 +0200 Subject: [PATCH 2/7] Reformating changelog to changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba91ead..15264e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Internal + +- Reformat changelog to use reflinks in changelog entries [#58] from [@glensc]. + [Unreleased]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.0...HEAD +[#58]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/58 + ## [1.3.0] - 2021-04-07 ### Added From a6090fcea16ffd63af66a811ff2e3d6d041ccdc5 Mon Sep 17 00:00:00 2001 From: Lukas Hettwer Date: Thu, 25 Feb 2021 15:05:16 +0100 Subject: [PATCH 3/7] Extend by the Code Climate output format The Code Climate format is used in the GitLab CI/CD to show errors in the merge request page. The simple JSON format is not sufficient for this. --- README.md | 1 + src/Application.php | 1 + src/Manager.php | 2 + src/Output.php | 75 +++++++++++++++++++++++ src/Settings.php | 5 ++ tests/Output.phpt | 95 ++++++++++++++++++++++++++++++ tests/Settings.parseArguments.phpt | 8 +++ 7 files changed, 187 insertions(+) create mode 100644 tests/Output.phpt diff --git a/README.md b/README.md index e5c762f..eb546e9 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ It is strongly recommended for existing users of the (unmaintained) - `--no-progress` Disable progress in console output. - `--checkstyle` Output results as Checkstyle XML. - `--json` Output results as JSON string (requires PHP 5.4). +- `--gitlab` Output results for the GitLab Code Quality widget (requires PHP 5.4), see more in [Code Quality](https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html) documentation. - `--blame` Try to show git blame for row with error. - `--git ` Path to Git executable to show blame message (default: 'git'). - `--stdin` Load files and folder to test from standard input. diff --git a/src/Application.php b/src/Application.php index d38e42d..836f335 100644 --- a/src/Application.php +++ b/src/Application.php @@ -87,6 +87,7 @@ private function showOptions() --no-colors Disable colors in console output. --no-progress Disable progress in console output. --json Output results as JSON string. + --gitlab Output results for the GitLab Code Quality Widget. --checkstyle Output results as Checkstyle XML. --blame Try to show git blame for row with error. --git Path to Git executable to show blame message (default: 'git'). diff --git a/src/Manager.php b/src/Manager.php index 63091b1..96553d0 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -82,6 +82,8 @@ protected function getDefaultOutput(Settings $settings) switch ($settings->format) { case Settings::FORMAT_JSON: return new JsonOutput($writer); + case Settings::FORMAT_GITLAB: + return new GitLabOutput($writer); case Settings::FORMAT_CHECKSTYLE: return new CheckstyleOutput($writer); } diff --git a/src/Output.php b/src/Output.php index c51d11b..974dde8 100644 --- a/src/Output.php +++ b/src/Output.php @@ -85,6 +85,81 @@ public function writeResult(Result $result, ErrorFormatter $errorFormatter, $ign } } +class GitLabOutput implements Output +{ + /** @var IWriter */ + protected $writer; + + /** + * @param IWriter $writer + */ + public function __construct(IWriter $writer) + { + $this->writer = $writer; + } + + public function ok() + { + + } + + public function skip() + { + + } + + public function error() + { + + } + + public function fail() + { + + } + + public function setTotalFileCount($count) + { + + } + + public function writeHeader($phpVersion, $parallelJobs, $hhvmVersion = null) + { + + } + + public function writeResult(Result $result, ErrorFormatter $errorFormatter, $ignoreFails) + { + $errors = array(); + foreach ($result->getErrors() as $error) { + $message = $error->getMessage(); + $line = 1; + if ($error instanceof SyntaxError) { + $line = $error->getLine(); + } + $filePath = $error->getFilePath(); + $result = array( + 'type' => 'issue', + 'check_name' => 'Parse error', + 'description' => $message, + 'categories' => 'Style', + 'fingerprint' => md5($filePath . $message . $line), + 'severity' => 'minor', + 'location' => array( + 'path' => $filePath, + 'lines' => array( + 'begin' => $line, + ), + ), + ); + array_push($errors, $result); + } + + $string = json_encode($errors) . PHP_EOL; + $this->writer->write($string); + } +} + class TextOutput implements Output { const TYPE_DEFAULT = 'default', diff --git a/src/Settings.php b/src/Settings.php index 3e03a71..40cb8b1 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -13,6 +13,7 @@ class Settings const FORMAT_TEXT = 'text'; const FORMAT_JSON = 'json'; + const FORMAT_GITLAB = 'gitlab'; const FORMAT_CHECKSTYLE = 'checkstyle'; /** @@ -179,6 +180,10 @@ public static function parseArguments(array $arguments) $settings->format = self::FORMAT_JSON; break; + case '--gitlab': + $settings->format = self::FORMAT_GITLAB; + break; + case '--checkstyle': $settings->format = self::FORMAT_CHECKSTYLE; break; diff --git a/tests/Output.phpt b/tests/Output.phpt new file mode 100644 index 0000000..95814a5 --- /dev/null +++ b/tests/Output.phpt @@ -0,0 +1,95 @@ +writeResult($result, new ErrorFormatter(), true); + + $result = (array) json_decode($writer->getLogs()); + + for ($i = 0; $i < count($result) && $i < count($errors); $i++) { + $message = $errors[$i]->getMessage(); + $filePath = $errors[$i]->getFilePath(); + $line = 1; + if ($errors[$i] instanceof SyntaxError) { + $line = $errors[$i]->getLine(); + } + Assert::equal($result[$i]->type, 'issue'); + Assert::equal($result[$i]->check_name, 'Parse error'); + Assert::equal($result[$i]->categories, 'Style'); + Assert::equal($result[$i]->severity, 'minor'); + Assert::equal($result[$i]->description, $message); + Assert::equal($result[$i]->fingerprint, md5($filePath . $message . $line)); + Assert::equal($result[$i]->location->path, $filePath); + Assert::equal($result[$i]->location->lines->begin, $line); + } + } + + public function getGitLabOutputData() + { + return array( + array( + 'errors' => array() + ), + array( + 'errors' => array( + new SyntaxError('foo/bar.php', "Parse error: syntax error, unexpected in foo/bar.php on line 52") + ) + ), + array( + 'errors' => array( + new JakubOnderka\PhpParallelLint\Error('foo/bar.php', "PHP Parse error: syntax error, unexpected ';'") + ) + ), + array( + 'errors' => array( + new SyntaxError('foo/bar.php', "Parse error: syntax error, unexpected in foo/bar.php on line 52"), + new JakubOnderka\PhpParallelLint\Error('foo/bar.php', "PHP Parse error: syntax error, unexpected ';'") + ) + ), + ); + } +} + +class TestWriter implements IWriter +{ + /** @var string */ + protected $logs = ""; + + /** + * @param string $string + */ + public function write($string) + { + $this->logs .= $string; + } + + public function getLogs() + { + return $this->logs; + } +} + +$testCase = new OutputTest; +$testCase->run(); diff --git a/tests/Settings.parseArguments.phpt b/tests/Settings.parseArguments.phpt index 0a83673..a669195 100644 --- a/tests/Settings.parseArguments.phpt +++ b/tests/Settings.parseArguments.phpt @@ -103,6 +103,14 @@ class SettingsParseArgumentsTest extends Tester\TestCase Assert::equal(Settings::FORMAT_JSON, $settings->format); } + public function testGitLabOutput() + { + $commandLine = './parallel-lint --gitlab .'; + $argv = explode(" ", $commandLine); + $settings = Settings::parseArguments($argv); + Assert::equal(Settings::FORMAT_GITLAB, $settings->format); + } + public function testCheckstyleOutput() { $commandLine = './parallel-lint --checkstyle .'; From 3c5c2091fc2d425996d82c3d1f1354e87a5a6214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Make=C5=A1?= Date: Sat, 8 May 2021 06:50:05 +0200 Subject: [PATCH 4/7] Added Gitlab output to changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15264e7..c047dc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added + +- Extend by the Code Climate output format [#50] from [@lukas9393]. + ### Internal - Reformat changelog to use reflinks in changelog entries [#58] from [@glensc]. [Unreleased]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.0...HEAD +[#50]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/50 [#58]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/58 ## [1.3.0] - 2021-04-07 @@ -93,3 +98,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [@reedy]: https://github.com/reedy [@roelofr]: https://github.com/roelofr [@szepeviktor]: https://github.com/szepeviktor +[@lukas9393]: https://github.com/lukas9393 + From 49cc97536091a245c263d69992f66196038b45ce Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 21 Jun 2021 21:31:31 +0200 Subject: [PATCH 5/7] PHP 8.1: silence the deprecation notice about jsonSerialize() return type As of PHP 8.1, PHP adds return type declarations to the PHP native functions. For the `JsonSerializable::jsonSerialize()` interface method, the new signature is: ```php function jsonSerialize(): mixed {} ``` As this libary still supports PHP 5.3, it is not possible to add this return type as: 1. Return types weren't available until PHP 7.0 and 2. the `mixed` return type only became available in PHP 8.0. For libraries supporting PHP 7.0+, it would have been possible to fix this by adding an `array` return type (higher specificity). For libraries still supporting PHP < 7.0, there are two choices: 1. Either decouple from the `JsonSerialize` interface. 2. Or use a PHP 8.1 attribute to silence the deprecation notice. As prior to PHP 8.0, attributes are ignored as if they were comments, it is safe to add the attribute to the library and IMO, this is prefered over decoupling the classes from the `JsonSerializable` interface. To prevent PHPCS tripping up over "something" existing between the function docblock and the declaration, PHPCS 3.6.0 should be used, which is the first PHPCS version with full PHP 8.0 syntax support in the sniffs (albeit that there are still some small things to fix up in PHPCS). Refs: * https://wiki.php.net/rfc/internal_method_return_types * https://github.com/php/php-src/pull/7051 --- composer.json | 2 +- src/Error.php | 4 ++++ src/Result.php | 3 +++ src/exceptions.php | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ce7ed04..55d5812 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "require-dev": { "nette/tester": "^1.3 || ^2.0", "php-parallel-lint/php-console-highlighter": "~0.3", - "squizlabs/php_codesniffer": "^3.5" + "squizlabs/php_codesniffer": "^3.6" }, "suggest": { "php-parallel-lint/php-console-highlighter": "Highlight syntax in code snippet" diff --git a/src/Error.php b/src/Error.php index 9041ab1..0c9f65f 100644 --- a/src/Error.php +++ b/src/Error.php @@ -1,6 +1,8 @@ json_encode, * which is a value of any type other than a resource. */ + #[ReturnTypeWillChange] public function jsonSerialize() { return array( @@ -87,6 +90,7 @@ class Blame implements \JsonSerializable * @return mixed data which can be serialized by json_encode, * which is a value of any type other than a resource. */ + #[ReturnTypeWillChange] function jsonSerialize() { return array( diff --git a/src/Result.php b/src/Result.php index 6004374..9f6a368 100644 --- a/src/Result.php +++ b/src/Result.php @@ -1,6 +1,8 @@ json_encode, * which is a value of any type other than a resource. */ + #[ReturnTypeWillChange] function jsonSerialize() { return array( diff --git a/src/exceptions.php b/src/exceptions.php index 3893b83..b96f28a 100644 --- a/src/exceptions.php +++ b/src/exceptions.php @@ -1,8 +1,11 @@ Date: Wed, 28 Jul 2021 19:11:41 +0200 Subject: [PATCH 6/7] PHP 8.1: silence the deprecation notice about RecursiveFilterIterator method return types As of PHP 8.1, PHP adds return type declarations to the PHP native functions. For the `RecursiveFilterIterator`, the relevant method signatures are: * `accept(): bool` * `hasChildren(): bool` * `getChildren(): ?RecursiveFilterIterator` As this libary still supports PHP 5.3, it is not possible to add this return type as: 1. Return types weren't available until PHP 7.0 and 2. the `mixed` return type only became available in PHP 8.0. For libraries still supporting PHP < 7.0, there are two choices: 1. Either decouple from the interface. 2. Or use a PHP 8.1 attribute to silence the deprecation notice. As prior to PHP 8.0, attributes are ignored as if they were comments, it is safe to add the attribute to the library and IMO, this is prefered over decoupling the classes from the interface. To prevent PHPCS tripping up over "something" existing between the function docblock and the declaration, PHPCS 3.6.0 should be used, which is the first PHPCS version with full PHP 8.0 syntax support in the sniffs (albeit that there are still some small things to fix up in PHPCS). Refs: * https://wiki.php.net/rfc/internal_method_return_types --- src/Manager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Manager.php b/src/Manager.php index 96553d0..84b7434 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -4,6 +4,7 @@ use JakubOnderka\PhpParallelLint\Contracts\SyntaxErrorCallback; use JakubOnderka\PhpParallelLint\Process\GitBlameProcess; use JakubOnderka\PhpParallelLint\Process\PhpExecutable; +use ReturnTypeWillChange; class Manager { @@ -226,6 +227,7 @@ public function __construct(\RecursiveDirectoryIterator $iterator, array $exclud * @link http://php.net/manual/en/filteriterator.accept.php * @return bool true if the current element is acceptable, otherwise false. */ + #[ReturnTypeWillChange] public function accept() { $current = $this->current()->getPathname(); @@ -245,6 +247,7 @@ public function accept() * @link http://php.net/manual/en/recursivefilteriterator.haschildren.php * @return bool true if the inner iterator has children, otherwise false */ + #[ReturnTypeWillChange] public function hasChildren() { return $this->iterator->hasChildren(); @@ -257,6 +260,7 @@ public function hasChildren() * @link http://php.net/manual/en/recursivefilteriterator.getchildren.php * @return \RecursiveFilterIterator containing the inner iterator's children. */ + #[ReturnTypeWillChange] public function getChildren() { return new self($this->iterator->getChildren(), $this->excluded); From 761f3806e30239b5fcd90a0a45d41dc2138de192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Make=C5=A1?= Date: Fri, 13 Aug 2021 07:30:45 +0200 Subject: [PATCH 7/7] New version - 1.3.1 --- CHANGELOG.md | 11 ++++++++++- src/Application.php | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c047dc0..3df611d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,18 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +[Unreleased]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.0...HEAD + +## [1.3.1] - 2021-08-13 + ### Added - Extend by the Code Climate output format [#50] from [@lukas9393]. +### Fixed + +- PHP 8.1: silence the deprecation notices about missing return types [#64] from [@jrfnl]. + ### Internal - Reformat changelog to use reflinks in changelog entries [#58] from [@glensc]. -[Unreleased]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.0...HEAD +[1.3.1]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.0...1.3.1 [#50]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/50 [#58]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/58 +[#64]: https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/64 ## [1.3.0] - 2021-04-07 diff --git a/src/Application.php b/src/Application.php index 836f335..4b4017e 100644 --- a/src/Application.php +++ b/src/Application.php @@ -4,7 +4,7 @@ class Application { - const VERSION = '1.3.0'; + const VERSION = '1.3.1'; // Return codes const SUCCESS = 0,