You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run using phpVersion: 80000 and got these errors reported on some files:
------ -----------------------------------------------------------------
Line protected/tests/unit/OrdersTest.php
------ -----------------------------------------------------------------
15 Syntax error, unexpected T_MATCH, expecting T_STRING on line 15
25 Syntax error, unexpected ';', expecting '{' on line 25
------ -----------------------------------------------------------------
------ -----------------------------------------------------------------
Line protected/tests/unit/PickupTest.php
------ -----------------------------------------------------------------
15 Syntax error, unexpected T_MATCH, expecting T_STRING on line 15
25 Syntax error, unexpected ';', expecting '{' on line 25
------ -----------------------------------------------------------------
------ -----------------------------------------------------------------
Line protected/tests/unit/PurchasesTest.php
------ -----------------------------------------------------------------
15 Syntax error, unexpected T_MATCH, expecting T_STRING on line 15
25 Syntax error, unexpected ';', expecting '{' on line 25
------ -----------------------------------------------------------------
As you can see all of them are tests. But there is no match on line 15 in any of these files:
I tried to remove some lines from test files and came to the conclusion that the errors aren't related to those files at all. The errors are still reported at the same lines even if there are no class contents on them at all
Running w/ the --debug switch doesn't help at all, no further trace is provided. How do I debug this?
The text was updated successfully, but these errors were encountered:
OK I found it. It's \PHPUnit\Framework\MockObject\Builder\Match interface in PHPUnit@8.5.8.
I understand that the error isn't related to PHPStan but I'd suggest fixing the error message. It'd be easier to fix the issue if the error provided had the right file path 😄
I tried to run using
phpVersion: 80000
and got these errors reported on some files:As you can see all of them are tests. But there is no
match
on line 15 in any of these files:I tried to remove some lines from test files and came to the conclusion that the errors aren't related to those files at all. The errors are still reported at the same lines even if there are no class contents on them at all
Running w/ the
--debug
switch doesn't help at all, no further trace is provided. How do I debug this?The text was updated successfully, but these errors were encountered: