Skip to content

Commit

Permalink
Push other errors into baselines: all false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBadura committed Feb 17, 2025
1 parent ffe0c9e commit 0f98fea
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
38 changes: 37 additions & 1 deletion baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="6.0.0@b8e96bb617bf59382113b1b56cef751f648a7dc9">
<files psalm-version="6.7.1@a2f190972555ea01b0cfcc1913924d6c5fc1a64e">
<file src="src/Aggregate/AggregateRootBehaviour.php">
<UnsafeInstantiation>
<code><![CDATA[new static()]]></code>
Expand Down Expand Up @@ -78,6 +78,11 @@
<code><![CDATA[AggregateRootMetadata<T>]]></code>
</InvalidReturnType>
</file>
<file src="src/Metadata/ClassFinder.php">
<UnresolvableInclude>
<code><![CDATA[require_once $file]]></code>
</UnresolvableInclude>
</file>
<file src="src/Repository/DefaultRepository.php">
<PossiblyNullArgument>
<code><![CDATA[$streamName]]></code>
Expand Down Expand Up @@ -130,6 +135,14 @@
<code><![CDATA[$this->messages]]></code>
</MixedPropertyTypeCoercion>
</file>
<file src="src/Store/StreamDoctrineDbalStore.php">
<InvalidOperand>
<code><![CDATA[$index]]></code>
<code><![CDATA[$index]]></code>
<code><![CDATA[$index]]></code>
<code><![CDATA[$index]]></code>
</InvalidOperand>
</file>
<file src="src/Store/StreamDoctrineDbalStoreStream.php">
<ArgumentTypeCoercion>
<code><![CDATA[(int)$data['playhead']]]></code>
Expand All @@ -145,6 +158,12 @@
<code><![CDATA[$event]]></code>
</ArgumentTypeCoercion>
</file>
<file src="src/Subscription/RetryStrategy/ClockBasedRetryStrategy.php">
<InvalidOperand>
<code><![CDATA[$this->baseDelay * ($this->delayFactor ** $attempt)]]></code>
<code><![CDATA[$this->delayFactor ** $attempt]]></code>
</InvalidOperand>
</file>
<file src="src/Subscription/Store/DoctrineSubscriptionStore.php">
<MixedArgument>
<code><![CDATA[$context]]></code>
Expand Down Expand Up @@ -226,6 +245,9 @@
</MissingConstructor>
</file>
<file src="tests/Benchmark/SubscriptionEngineBatchBench.php">
<InvalidOperand>
<code><![CDATA[$i]]></code>
</InvalidOperand>
<MissingConstructor>
<code><![CDATA[$id]]></code>
<code><![CDATA[$repository]]></code>
Expand All @@ -234,13 +256,27 @@
</MissingConstructor>
</file>
<file src="tests/Benchmark/SubscriptionEngineBench.php">
<InvalidOperand>
<code><![CDATA[$i]]></code>
<code><![CDATA[$i]]></code>
</InvalidOperand>
<MissingConstructor>
<code><![CDATA[$id]]></code>
<code><![CDATA[$repository]]></code>
<code><![CDATA[$store]]></code>
<code><![CDATA[$subscriptionEngine]]></code>
</MissingConstructor>
</file>
<file src="tests/Benchmark/blackfire.php">
<InvalidOperand>
<code><![CDATA[$j]]></code>
</InvalidOperand>
</file>
<file src="tests/Integration/BasicImplementation/BasicIntegrationTest.php">
<InvalidOperand>
<code><![CDATA[$i]]></code>
</InvalidOperand>
</file>
<file src="tests/Integration/ChildAggregate/PersonalInformation.php">
<PropertyNotSetInConstructor>
<code><![CDATA[PersonalInformation]]></code>
Expand Down
2 changes: 0 additions & 2 deletions src/Metadata/ClassFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ private function findPhpFiles(array $paths): array
private function getClassesInPhpFiles(array $files): array
{
foreach ($files as $file) {

/** @psalm-suppress all */
require_once $file;
}

Expand Down

0 comments on commit 0f98fea

Please sign in to comment.