Skip to content

Commit 890cfbf

Browse files
committed
Fix psalm errors.
1 parent abc4210 commit 890cfbf

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

psalm.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="5"
4+
resolveFromConfigFile="true"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns="https://getpsalm.org/schema/config"
7+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
>
9+
<projectFiles>
10+
<directory name="src" />
11+
<ignoreFiles>
12+
<directory name="vendor" />
13+
</ignoreFiles>
14+
</projectFiles>
15+
</psalm>

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,6 @@ public function getPrimaryNamespace(PackageInterface $package)
265265
);
266266
}
267267

268-
return trim($primaryNs, '\\');
268+
return trim((string)$primaryNs, '\\');
269269
}
270270
}

0 commit comments

Comments
 (0)