Skip to content

Commit

Permalink
Merge pull request #68 from pestphp/fix-location-provider
Browse files Browse the repository at this point in the history
fix(location-provider): Allow location to be null
  • Loading branch information
olivernybroe authored Sep 17, 2020
2 parents 8c01013 + c6ea3e2 commit 7baa95b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
### Fixed
- Fixed duplicate test name error when no test name is given yet. ([#61](https://github.com/pestphp/pest-intellij/pull/61))
- Fixed finding tests with namespace at the top. ([#65](https://github.com/pestphp/pest-intellij/pull/65))
- Fixed allow location to be null in location provider. ([#68](https://github.com/pestphp/pest-intellij/pull/68))

### Security
## [0.3.3]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ class PestLocationProvider : SMTestLocator {
return file
}

return (file as PhpFile).getPestTests().first { it.getPestTestName() == testName }
return (file as PhpFile).getPestTests().firstOrNull { it.getPestTestName() == testName }
}
}

0 comments on commit 7baa95b

Please sign in to comment.