Skip to content

Commit

Permalink
Merge pull request #119 from DaveLiddament/fix/psalm-errors
Browse files Browse the repository at this point in the history
FIX new psalm errors and deptrac updates
  • Loading branch information
DaveLiddament authored Aug 7, 2022
2 parents 3fb2318 + 6028842 commit 27667a9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
22 changes: 0 additions & 22 deletions depfile.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions deptrac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
deptrac:
paths:
- ./src
layers:
- name: Domain
collectors:
- type: directory
regex: src/Domain
- name: Framework
collectors:
- type: directory
regex: src/Framework
- name: Plugins
collectors:
- type: directory
regex: src/Plugins
ruleset:
Domain: ~
Framework:
- Domain
- Plugins
Plugins:
- Domain
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<psalm
totallyTyped="true"
errorLevel="1"
checkForThrowsDocblock="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/OutputFormatters/JunitOutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function outputResults(AnalysisResults $analysisResults): string
$dom->formatOutput = true;
$asXml = $test->asXML();

if (false !== $asXml) {
if ((false !== $asXml) && ('' !== $asXml)) {
$dom->loadXML($asXml);
} else {
throw new SarbException('xml could not be loaded'); // @codeCoverageIgnore
Expand Down

0 comments on commit 27667a9

Please sign in to comment.