File tree Expand file tree Collapse file tree 10 files changed +16
-36
lines changed Expand file tree Collapse file tree 10 files changed +16
-36
lines changed Original file line number Diff line number Diff line change 33 tests : tests
44 output : tests/_output
55 data : tests/_data
6- support : tests/_support
6+ support : tests
77 envs : tests/_envs
88actor_suffix : Tester
99extensions :
Original file line number Diff line number Diff line change 1212 ],
1313 "require" : {
1414 "php" : " ^7.4.0 || ^8.0 || ^8.1 || ^8.2" ,
15+ "ext-simplexml" : " *" ,
1516 "vimeo/psalm" : " ^5"
1617 },
1718 "require-dev" : {
2627 },
2728 "autoload" : {
2829 "psr-4" : {
29- "Sfp\\ Psalm\\ PsrLogPlugin\\ " : [ " . " ]
30+ "Sfp\\ Psalm\\ PsrLogPlugin\\ " : " src "
3031 }
3132 },
3233 "autoload-dev" : {
3334 "psr-4" : {
34- "SfpTest\\ Psalm\\ PsrLogPlugin\\ " : [
35- " tests/_support" ,
36- " tests/acceptance"
37- ]
35+ "SfpTest\\ Psalm\\ PsrLogPlugin\\ " : " tests"
3836 }
3937 },
4038 "config" : {
Original file line number Diff line number Diff line change 55 <arg name =" colors" />
66
77 <!-- Paths to check -->
8- <file >Plugin.php </file >
8+ <file >src </file >
99
1010 <!-- inherit rules from: -->
1111 <rule ref =" PSR12" />
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99 xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
1010>
1111 <projectFiles >
12- <directory name =" . " />
12+ <directory name =" src " />
1313 <ignoreFiles >
1414 <directory name =" vendor" />
1515 </ignoreFiles >
1616 </projectFiles >
1717
1818 <issueHandlers >
1919 <LessSpecificReturnType errorLevel =" info" />
20- <PropertyNotSetInConstructor >
21- <errorLevel type =" suppress" >
22- <directory name =" tests" />
23- </errorLevel >
24- </PropertyNotSetInConstructor >
20+ <UnnecessaryVarAnnotation errorLevel =" suppress" />
2521 </issueHandlers >
2622</psalm >
Original file line number Diff line number Diff line change 66use Psalm \Plugin \PluginEntryPointInterface ;
77use Psalm \Plugin \RegistrationInterface ;
88
9+ /**
10+ * @api
11+ * @psalm-suppress UnusedClass
12+ */
913class Plugin implements PluginEntryPointInterface
1014{
1115 public function __invoke (RegistrationInterface $ psalm , SimpleXMLElement $ config = null ) : void
1216 {
1317 if (isset ($ config ->throwable ) && ((bool )$ config ->throwable === true )) {
14- $ psalm ->addStubFile (__DIR__ . '/throwable-stubs/LoggerInterface.php ' );
15- $ psalm ->addStubFile (__DIR__ . '/throwable-stubs/AbstractLogger.php ' );
18+ $ psalm ->addStubFile (__DIR__ . '/../ throwable-stubs/LoggerInterface.php ' );
19+ $ psalm ->addStubFile (__DIR__ . '/../ throwable-stubs/AbstractLogger.php ' );
1620 } else {
17- $ psalm ->addStubFile (__DIR__ . '/stubs/LoggerInterface.php ' );
18- $ psalm ->addStubFile (__DIR__ . '/stubs/AbstractLogger.php ' );
21+ $ psalm ->addStubFile (__DIR__ . '/../ stubs/LoggerInterface.php ' );
22+ $ psalm ->addStubFile (__DIR__ . '/../ stubs/AbstractLogger.php ' );
1923 }
2024 }
2125}
Original file line number Diff line number Diff line change 22
33namespace SfpTest \Psalm \PsrLogPlugin ;
44
5- use Behat \Gherkin \Node \TableNode ;
6- use Codeception \Exception \TestRuntimeException ;
7- use PHPUnit \Framework \Assert ;
8-
95/**
106 * Inherited Methods
117 * @method void wantToTest($text)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ Feature: Exception
55 """
66 <?xml version="1.0"?>
77 <psalm>
8- <projectFiles>
9- <directory name="."/>
10- <ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
11- </projectFiles>
8+ <projectFiles><directory name="."/></projectFiles>
129 <plugins>
1310 <pluginClass class="Sfp\Psalm\PsrLogPlugin\Plugin"/>
1411 </plugins>
You can’t perform that action at this time.
0 commit comments