Update dependency phpstan/phpstan to v2 #4668
Annotations
10 errors
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Console/DoctrineHelper.php#L1
Ignored error pattern #^Cannot unset offset 'url' on array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\<string, mixed\>, driver\?\: 'ibm_db2'\|'mysqli'\|'oci8'\|'pdo_mysql'\|'pdo_oci'\|'pdo_pgsql'\|'pdo_sqlite'\|'pdo_sqlsrv'\|'pgsql'\|'sqlite3'\|'sqlsrv', driverClass\?\: class\-string\<Doctrine\\DBAL\\Driver\>, driverOptions\?\: array, host\?\: string, \.\.\.\}\.$# in path /home/runner/work/event-sourcing/event-sourcing/src/Console/DoctrineHelper.php was not matched in reported errors.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Console/DoctrineHelper.php#L41
Cannot unset offset 'url' on array{application_name?: string, charset?: string, dbname?: string, defaultTableOptions?: array<string, mixed>, driver?: 'ibm_db2'|'mysqli'|'oci8'|'pdo_mysql'|'pdo_oci'|'pdo_pgsql'|'pdo_sqlite'|'pdo_sqlsrv'|'pgsql'|'sqlite3'|'sqlsrv', driverClass?: class-string<Doctrine\DBAL\Driver>, driverOptions?: array<mixed>, host?: string, ...}.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/EventBus/ListenerDescriptor.php#L37
Call to function method_exists() with ReflectionFunction and 'isAnonymous' will always evaluate to true.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Message/Message.php#L19
@readonly property cannot have a default value.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Message/Message.php#L82
@readonly property Patchlevel\EventSourcing\Message\Message::$headers is assigned outside of the constructor.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Message/Message.php#L91
@readonly property Patchlevel\EventSourcing\Message\Message::$headers is assigned outside of the constructor.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Message/Message.php#L108
@readonly property Patchlevel\EventSourcing\Message\Message::$headers is assigned outside of the constructor.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Message/Serializer/DefaultHeadersSerializer.php#L56
Parameter #2 $data of method Patchlevel\Hydrator\Hydrator::hydrate() expects array<string, mixed>, array<mixed, mixed> given.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Message/Translator/ChainTranslator.php#L44
Parameter #1 $array (list<Patchlevel\EventSourcing\Message\Message>) of array_values is already a list, call has no effect.
|
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest):
src/Store/ArrayStream.php#L89
Method Patchlevel\EventSourcing\Store\ArrayStream::current() never returns null so it can be removed from the return type.
|