Skip to content

Commit 07d7c50

Browse files
committed
[php] Psalm annotate exception class props.
This tells Psalm that these are a part of an expected API.
1 parent e803072 commit 07d7c50

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

php/psalm.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="1"
4-
resolveFromConfigFile="false"
5-
findUnusedBaselineEntry="false"
4+
resolveFromConfigFile="true"
5+
findUnusedBaselineEntry="true"
66
findUnusedCode="true"
77
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
88
xmlns="https://getpsalm.org/schema/config"

php/src/ParserException/UnexpectedEofException.php

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Cucumber\Gherkin\ParserException;
88
use Cucumber\Gherkin\Token;
99

10+
/**
11+
* @psalm-api
12+
*/
1013
final class UnexpectedEofException extends ParserException
1114
{
1215
/**

php/src/ParserException/UnexpectedTokenException.php

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Cucumber\Gherkin\ParserException;
99
use Cucumber\Gherkin\Token;
1010

11+
/**
12+
* @psalm-api
13+
*/
1114
final class UnexpectedTokenException extends ParserException
1215
{
1316
/**

0 commit comments

Comments
 (0)