Update dependency phpstan/phpstan to v2 #4920
Annotations
10 errors and 1 warning
PHPStan:
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.
|
PHPStan:
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, ...}.
|
PHPStan:
src/EventBus/ListenerDescriptor.php#L37
Call to function method_exists() with ReflectionFunction and 'isAnonymous' will always evaluate to true.
|
PHPStan:
src/Message/Message.php#L19
@readonly property cannot have a default value.
|
PHPStan:
src/Message/Message.php#L82
@readonly property Patchlevel\EventSourcing\Message\Message::$headers is assigned outside of the constructor.
|
PHPStan:
src/Message/Message.php#L91
@readonly property Patchlevel\EventSourcing\Message\Message::$headers is assigned outside of the constructor.
|
PHPStan:
src/Message/Message.php#L108
@readonly property Patchlevel\EventSourcing\Message\Message::$headers is assigned outside of the constructor.
|
PHPStan:
src/Message/Serializer/DefaultHeadersSerializer.php#L56
Parameter #2 $data of method Patchlevel\Hydrator\Hydrator::hydrate() expects array<string, mixed>, array<mixed, mixed> given.
|
PHPStan:
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.
|
PHPStan:
src/Store/ArrayStream.php#L89
Method Patchlevel\EventSourcing\Store\ArrayStream::current() never returns null so it can be removed from the return type.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading