Skip to content

Commit

Permalink
Merge branch '9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 30, 2022
2 parents ece0140 + 5797d42 commit d9d16ac
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .phive/phars.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^3.0" installed="3.13.0" location="./tools/php-cs-fixer" copy="true"/>
<phar name="psalm" version="^4.0" installed="4.30.0" location="./tools/psalm" copy="true"/>
<phar name="psalm" version="^5.0" installed="5.0.0" location="./tools/psalm" copy="true"/>
<phar name="composer" version="^2.0.3" installed="2.4.4" location="./tools/composer" copy="true"/>
</phive>
26 changes: 19 additions & 7 deletions .psalm/baseline.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.x-dev@">
<files psalm-version="dev-master@">
<file src="src/CodeCoverage.php">
<ArgumentTypeCoercion occurrences="1">
<code>$tmp[0]</code>
Expand All @@ -12,8 +12,10 @@
<PossiblyNullArgument occurrences="1">
<code>$this-&gt;functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code>
</PossiblyNullArgument>
<PossiblyNullArrayAccess occurrences="1">
<PossiblyNullArrayAccess occurrences="3">
<code>$this-&gt;functionCoverage[$file][$functionName]['branches']</code>
<code>$this-&gt;functionCoverage[$file][$functionName]['branches'][$branchId]</code>
<code>$this-&gt;functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code>
</PossiblyNullArrayAccess>
<PossiblyNullArrayAssignment occurrences="1">
<code>$this-&gt;functionCoverage[$file][$functionName]['branches']</code>
Expand Down Expand Up @@ -49,15 +51,22 @@
</InvalidDocblockParamName>
</file>
<file src="src/Node/Builder.php">
<EmptyArrayAccess occurrences="1">
<code>$pointer[$path[$i] . $type]</code>
</EmptyArrayAccess>
<UnsupportedReferenceUsage occurrences="1">
<code>$pointer = &amp;$pointer[$path[$i] . $type]</code>
</UnsupportedReferenceUsage>
</file>
<file src="src/Node/Directory.php">
<MissingTemplateParam occurrences="1">
<code>IteratorAggregate</code>
</MissingTemplateParam>
<PropertyTypeCoercion occurrences="2">
<code>$this-&gt;directories</code>
<code>$this-&gt;files</code>
</PropertyTypeCoercion>
<UnsupportedReferenceUsage occurrences="2">
<code>$this-&gt;directories[] = &amp;$this-&gt;children[count($this-&gt;children) - 1]</code>
<code>$this-&gt;files[] = &amp;$this-&gt;children[count($this-&gt;children) - 1]</code>
</UnsupportedReferenceUsage>
</file>
<file src="src/Node/File.php">
<InvalidPropertyAssignmentValue occurrences="3">
Expand All @@ -70,15 +79,18 @@
<ArgumentTypeCoercion occurrences="1">
<code>$this-&gt;nodes[$this-&gt;position]</code>
</ArgumentTypeCoercion>
<MissingTemplateParam occurrences="1">
<code>RecursiveIterator</code>
</MissingTemplateParam>
<PropertyNotSetInConstructor occurrences="1">
<code>$position</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Report/Html/Renderer.php">
<InvalidScalarArgument occurrences="1"/>
<InvalidArgument occurrences="1"/>
</file>
<file src="src/Report/Html/Renderer/File.php">
<InvalidScalarArgument occurrences="1"/>
<InvalidArgument occurrences="1"/>
</file>
<file src="src/Report/Xml/BuildInformation.php">
<PossiblyNullReference occurrences="1">
Expand Down
2 changes: 1 addition & 1 deletion src/CodeCoverage.php
Expand Up @@ -538,7 +538,7 @@ private function processUnintentionallyCoveredUnits(array $unintentionallyCovere
} catch (\ReflectionException $e) {
throw new ReflectionException(
$e->getMessage(),
(int) $e->getCode(),
$e->getCode(),
$e
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/StaticAnalysis/ParsingFileAnalyser.php
Expand Up @@ -153,7 +153,7 @@ private function analyse(string $filename): void
$filename,
$error->getMessage()
),
(int) $error->getCode(),
$error->getCode(),
$error
);
}
Expand Down
Binary file modified tools/psalm
Binary file not shown.

0 comments on commit d9d16ac

Please sign in to comment.