Skip to content

Commit

Permalink
Update phpstan baseline to remove an entry. Also added one entry to p…
Browse files Browse the repository at this point in the history
…salm baseline regarding DateTimeImmutable::modify which can result `false` in some cases. In our case this is not possible and should also be fixed with the next release.

Ref: https://psalm.dev/r/8f44d5ca2d
Also ref: vimeo/psalm#8462
  • Loading branch information
DanielBadura committed Sep 23, 2022
1 parent 9dcb8c4 commit 08c19ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 6 additions & 1 deletion baseline.xml
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.24.0@06dd975cb55d36af80f242561738f16c5f58264f">
<files psalm-version="4.27.0@faf106e717c37b8c81721845dba9de3d8deed8ff">
<file src="src/Clock/FrozenClock.php">
<PossiblyFalsePropertyAssignmentValue occurrences="1">
<code>$this-&gt;frozenDateTime-&gt;modify(sprintf('+%s seconds', $seconds))</code>
</PossiblyFalsePropertyAssignmentValue>
</file>
<file src="src/Console/Command/OutboxConsumeCommand.php">
<ArgumentTypeCoercion occurrences="1">
<code>$sleep</code>
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -5,11 +5,6 @@ parameters:
count: 1
path: src/Console/DoctrineHelper.php

-
message: "#^Parameter \\#1 \\$params of static method Doctrine\\\\DBAL\\\\DriverManager\\:\\:getConnection\\(\\) expects array\\{charset\\?\\: string, dbname\\?\\: string, default_dbname\\?\\: string, driver\\?\\: 'ibm_db2'\\|'mysqli'\\|'oci8'\\|'pdo_mysql'\\|'pdo_oci'\\|'pdo_pgsql'\\|'pdo_sqlite'\\|'pdo_sqlsrv'\\|'sqlsrv', driverClass\\?\\: class\\-string\\<Doctrine\\\\DBAL\\\\Driver\\>, driverOptions\\?\\: array, host\\?\\: string, keepSlave\\?\\: bool, \\.\\.\\.\\}, array\\<'charset'\\|'default_dbname'\\|'defaultTableOptions'\\|'driver'\\|'driverClass'\\|'driverOptions'\\|'host'\\|'keepReplica'\\|'keepSlave'\\|'master'\\|'memory'\\|'password'\\|'pdo'\\|'platform'\\|'port'\\|'primary'\\|'replica'\\|'serverVersion'\\|'sharding'\\|'slaves'\\|'unix_socket'\\|'user'\\|'wrapperClass', array\\|bool\\|Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\|int\\|PDO\\|string\\> given\\.$#"
count: 1
path: src/Console/DoctrineHelper.php

-
message: "#^If condition is always false\\.$#"
count: 1
Expand Down

0 comments on commit 08c19ea

Please sign in to comment.