Skip to content

Commit 59cbc3b

Browse files
authored
[Release] 1.13.0 (#360)
* Bumps version to 1.13.0 * fix phpstan error in test
1 parent c8e68ac commit 59cbc3b

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [v1.13.0]
8+
### Added
9+
- Sort issues by file, line, function and lastly message ([#348](https://github.com/nunomaduro/phpinsights/pull/348))
10+
- Support multiple formatters ([#357](https://github.com/nunomaduro/phpinsights/pull/357))
11+
- Support custom class formatters ([#357](https://github.com/nunomaduro/phpinsights/pull/357))
12+
- Added diff from fixer to JSON formatter ([#356](https://github.com/nunomaduro/phpinsights/pull/356))
13+
- Check PHP version from composer to determine native type hint ([#347](https://github.com/nunomaduro/phpinsights/pull/347))
14+
- Added GitHub Action formatter ([#344](https://github.com/nunomaduro/phpinsights/pull/344))
15+
16+
### Fixed
17+
- Prevent failing on empty namespace ([#352](https://github.com/nunomaduro/phpinsights/pull/352))
18+
719
## [v1.12.0]
820
### Added
921
- Text coloring per section ([#339](https://github.com/nunomaduro/phpinsights/pull/339))

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phpinsights",
3-
"version": "1.12.0",
3+
"version": "1.13.0",
44
"main": "index.js",
55
"license": "MIT",
66
"dependencies": {

src/Domain/Kernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class Kernel
1818
/**
1919
* The app version.
2020
*/
21-
public const VERSION = 'v1.12.0';
21+
public const VERSION = 'v1.13.0';
2222

2323
/**
2424
* Bootstraps the usage of the package.

tests/Infrastructure/Repositories/LocalFilesRepositoryTest.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public function testPassFileInsteadOfDirectory(): void
7979

8080
self::assertCount(1, $files);
8181
self::assertInstanceOf(SplFileInfo::class, $files[0]);
82-
self::assertStringContainsString('/Fixtures/FileToInspect.php', $files[0]->getRealPath());
82+
$path = $files[0]->getRealPath();
83+
84+
if ($path === false) {
85+
self::fail("Path cannot be false.");
86+
return;
87+
}
88+
self::assertStringContainsString('/Fixtures/FileToInspect.php', $path);
8389
}
8490
}

0 commit comments

Comments
 (0)