Skip to content

Commit f85fca4

Browse files
committed
Force the PHPStan job to install a version of PHPUnit
1 parent ee498a8 commit f85fca4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/static-code-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ jobs:
1919
- name: Install Composer dependencies
2020
uses: ramsey/composer-install@v2
2121

22+
- name: Install PHPUnit
23+
run: composer test -- --version
24+
2225
- name: Run PHPStan
2326
run: composer static-analysis

phpstan.neon.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ parameters:
55
- tests
66
excludePaths:
77
- tests/coverage
8+
ignoreErrors:
9+
- '#Method Tests\\.+ has no return type specified.#'

src/Exceptions/SelectorException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace SteveGrunwell\PHPUnit_Markup_Assertions\Exceptions;
44

5+
/**
6+
* Base exception for selector-related issues.
7+
*/
58
class SelectorException extends \InvalidArgumentException
69
{
710
}

0 commit comments

Comments
 (0)