Skip to content

Commit

Permalink
Update baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Mar 2, 2024
1 parent d024b99 commit 3360232
Showing 1 changed file with 37 additions and 17 deletions.
54 changes: 37 additions & 17 deletions config/psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@950293c6e74c6e9db842f537c5722755b1594313">
<files psalm-version="dev-master@c4055cf0d03d9df471fc6761e732550c633088c1">
<file src="../src/Psl/Async/KeyedSemaphore.php">
<PossiblyNullReference>
<code>resume</code>
<code><![CDATA[resume]]></code>
</PossiblyNullReference>
</file>
<file src="../src/Psl/Async/Scheduler.php">
<MissingThrowsDocblock>
<code>run</code>
<code><![CDATA[run]]></code>
</MissingThrowsDocblock>
</file>
<file src="../src/Psl/Async/all.php">
<InvalidIterator>
<code><![CDATA[Awaitable::iterate($awaitables)]]></code>
</InvalidIterator>
</file>
<file src="../src/Psl/Async/any.php">
<InvalidIterator>
<code><![CDATA[Awaitable::iterate($awaitables)]]></code>
</InvalidIterator>
</file>
<file src="../src/Psl/Async/first.php">
<InvalidIterator>
<code><![CDATA[Awaitable::iterate($awaitables)]]></code>
</InvalidIterator>
</file>
<file src="../src/Psl/Collection/MutableVector.php">
<InvalidReturnStatement>
<code><![CDATA[Iter\Iterator::create($this->elements)]]></code>
Expand All @@ -32,15 +47,15 @@
</file>
<file src="../src/Psl/Encoding/Hex/decode.php">
<FalsableReturnStatement>
<code>hex2bin($hexadecimal)</code>
<code><![CDATA[hex2bin($hexadecimal)]]></code>
</FalsableReturnStatement>
<InvalidFalsableReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</InvalidFalsableReturnType>
</file>
<file src="../src/Psl/Filesystem/canonicalize.php">
<RiskyTruthyFalsyComparison>
<code>realpath($path)</code>
<code><![CDATA[realpath($path)]]></code>
</RiskyTruthyFalsyComparison>
</file>
<file src="../src/Psl/IO/ReadHandleConvenienceMethodsTrait.php">
Expand Down Expand Up @@ -93,20 +108,20 @@
</file>
<file src="../src/Psl/Iter/random.php">
<TypeDoesNotContainType>
<code>$size === 0</code>
<code><![CDATA[$size === 0]]></code>
</TypeDoesNotContainType>
</file>
<file src="../src/Psl/Json/encode.php">
<FalsableReturnStatement>
<code>$json</code>
<code><![CDATA[$json]]></code>
</FalsableReturnStatement>
<InvalidFalsableReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</InvalidFalsableReturnType>
</file>
<file src="../src/Psl/Network/Internal/socket_connect.php">
<PossiblyInvalidArgument>
<code>$socket</code>
<code><![CDATA[$socket]]></code>
</PossiblyInvalidArgument>
</file>
<file src="../src/Psl/Shell/stream_unpack.php">
Expand All @@ -115,25 +130,30 @@
<code><![CDATA[$headers['type']]]></code>
</PossiblyInvalidArrayAccess>
</file>
<file src="../src/Psl/Shell/unpack.php">
<InvalidIterator>
<code><![CDATA[stream_unpack($content)]]></code>
</InvalidIterator>
</file>
<file src="../src/Psl/Str/convert_encoding.php">
<FalsableReturnStatement>
<code><![CDATA[mb_convert_encoding($string, $to_encoding->value, $from_encoding->value)]]></code>
</FalsableReturnStatement>
<InvalidFalsableReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</InvalidFalsableReturnType>
</file>
<file src="../src/Psl/Str/detect_encoding.php">
<RiskyTruthyFalsyComparison>
<code>mb_detect_encoding($string, $encoding_list, true)</code>
<code><![CDATA[mb_detect_encoding($string, $encoding_list, true)]]></code>
</RiskyTruthyFalsyComparison>
</file>
<file src="../src/Psl/Str/ord.php">
<FalsableReturnStatement>
<code><![CDATA[mb_ord($character, $encoding->value)]]></code>
</FalsableReturnStatement>
<InvalidFalsableReturnType>
<code>int</code>
<code><![CDATA[int]]></code>
</InvalidFalsableReturnType>
</file>
<file src="../src/Psl/Str/replace_ci.php">
Expand All @@ -143,31 +163,31 @@
</file>
<file src="../src/Psl/Str/trim.php">
<InvalidNullableReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</InvalidNullableReturnType>
<NullableReturnStatement>
<code><![CDATA[preg_replace("{^[{$char_mask}]++|[{$char_mask}]++$}uD", '', $string)]]></code>
</NullableReturnStatement>
</file>
<file src="../src/Psl/Str/trim_left.php">
<InvalidNullableReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</InvalidNullableReturnType>
<NullableReturnStatement>
<code><![CDATA[preg_replace("{^[{$char_mask}]++}uD", '', $string)]]></code>
</NullableReturnStatement>
</file>
<file src="../src/Psl/Str/trim_right.php">
<InvalidNullableReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</InvalidNullableReturnType>
<NullableReturnStatement>
<code><![CDATA[preg_replace("{[{$char_mask}]++$}uD", '', $string)]]></code>
</NullableReturnStatement>
</file>
<file src="../src/Psl/Vec/reverse.php">
<TypeDoesNotContainType>
<code>0 === $size</code>
<code><![CDATA[0 === $size]]></code>
</TypeDoesNotContainType>
</file>
</files>

0 comments on commit 3360232

Please sign in to comment.