Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions analysis-baseline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ count = 1
[[issues]]
file = "src/ConfigProvider.php"
code = "invalid-return-statement"
message = '''Invalid return type for function `Webware\Log\ConfigProvider::__invoke`: expected `array{'dependencies': array{'aliases': array{Psr\EventDispatcher\EventDispatcherInterface::class: class-string, Psr\EventDispatcher\ListenerProviderInterface::class: class-string}, 'delegators': array{Laminas\Stratigility\Middleware\ErrorHandler::class: list<class-string>}, 'factories': array{Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate::class: class-string, Psr\Log\LoggerInterface::class: class-string, Webware\Log\Handler\PhpDbHandler::class: class-string, Webware\Log\Http\Middleware\MonologMiddleware::class: class-string, Webware\Log\Listener\Psr3LogPsr14Listener::class: class-string, Webware\Log\Processor\LaminasI18nProcessor::class: class-string}, 'invokables': array{Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider::class: class-string, Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider::class: class-string, Webware\Log\Processor\RamseyUuidProcessor::class: class-string}}, 'listener_providers': array<array-key, array{}|false|float(0.0)|int(0)|null|string('')|string('0')>, 'listeners': array<class-string, list<array{'listener': class-string, 'priority': int}>>, 'templates': array{'paths': array{'log': list<string>}}, Psr\Log\LoggerInterface::class: array{'auth_attribute': string, 'channel': string, 'log_errors': bool, 'process_translation': bool, 'process_uuid': bool, 'table': string}}`, but found `array{'Psr\Log\LoggerInterface': array{'auth_attribute': string, 'channel': string, 'log_errors': bool, 'process_translation': bool, 'process_uuid': bool, 'table': string}, 'dependencies': array{'aliases': array{Psr\EventDispatcher\EventDispatcherInterface::class: class-string, Psr\EventDispatcher\ListenerProviderInterface::class: class-string}, 'delegators': array{Laminas\Stratigility\Middleware\ErrorHandler::class: list<class-string>}, 'factories': array{Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate::class: class-string, Psr\Log\LoggerInterface::class: class-string, Webware\Log\Handler\PhpDbHandler::class: class-string, Webware\Log\Http\Middleware\MonologMiddleware::class: class-string, Webware\Log\Listener\Psr3LogPsr14Listener::class: class-string, Webware\Log\Processor\LaminasI18nProcessor::class: class-string}, 'invokables': array{Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider::class: class-string, Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider::class: class-string, Webware\Log\Processor\RamseyUuidProcessor::class: class-string}}, 'listener_providers': array{}, 'listeners': array<class-string, list<array{'listener': class-string, 'priority': int}>>, 'templates': array{'paths': array{'log': list<string>}}}`.'''
message = '''Invalid return type for function `Webware\Log\ConfigProvider::__invoke`: expected `array{'dependencies': array{'aliases': array{Psr\EventDispatcher\EventDispatcherInterface::class: class-string, Psr\EventDispatcher\ListenerProviderInterface::class: class-string}, 'delegators': array{Laminas\Stratigility\Middleware\ErrorHandler::class: list<class-string>}, 'factories': array{Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate::class: class-string, Psr\Log\LoggerInterface::class: class-string, Webware\Log\Console\InitDbCommand::class: class-string, Webware\Log\Handler\PhpDbHandler::class: class-string, Webware\Log\Http\Middleware\MonologMiddleware::class: class-string, Webware\Log\Listener\Psr3LogPsr14Listener::class: class-string, Webware\Log\Processor\LaminasI18nProcessor::class: class-string}, 'invokables': array{Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider::class: class-string, Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider::class: class-string, Webware\Log\Processor\RamseyUuidProcessor::class: class-string}}, 'listener_providers': array<array-key, array{}|false|float(0.0)|int(0)|null|string('')|string('0')>, 'listeners': array<class-string, list<array{'listener': class-string, 'priority': int}>>, 'templates': array{'paths': array{'log': list<string>}}, Psr\Log\LoggerInterface::class: array{'auth_attribute': string, 'channel': string, 'log_errors': bool, 'process_translation': bool, 'process_uuid': bool, 'table': string}, Webware\Console\ConsoleInterface::class: array{'commands': array<string, class-string>}}`, but found `array{'Psr\Log\LoggerInterface': array{'auth_attribute': string, 'channel': string, 'log_errors': bool, 'process_translation': bool, 'process_uuid': bool, 'table': string}, 'Webware\Console\ConsoleInterface': array{'commands': array{'log:init-db': class-string('Webware\Log\Console\InitDbCommand')}}, 'dependencies': array{'aliases': array{Psr\EventDispatcher\EventDispatcherInterface::class: class-string, Psr\EventDispatcher\ListenerProviderInterface::class: class-string}, 'delegators': array{Laminas\Stratigility\Middleware\ErrorHandler::class: list<class-string>}, 'factories': array{Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate::class: class-string, Psr\Log\LoggerInterface::class: class-string, Webware\Log\Console\InitDbCommand::class: class-string, Webware\Log\Handler\PhpDbHandler::class: class-string, Webware\Log\Http\Middleware\MonologMiddleware::class: class-string, Webware\Log\Listener\Psr3LogPsr14Listener::class: class-string, Webware\Log\Processor\LaminasI18nProcessor::class: class-string}, 'invokables': array{Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider::class: class-string, Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider::class: class-string, Webware\Log\Processor\RamseyUuidProcessor::class: class-string}}, 'listener_providers': array{}, 'listeners': array<class-string, list<array{'listener': class-string, 'priority': int}>>, 'templates': array{'paths': array{'log': list<string>}}}`.'''
count = 1

[[issues]]
file = "src/ConfigProvider.php"
code = "invalid-return-statement"
message = '''Invalid return type for function `Webware\Log\ConfigProvider::getDependencies`: expected `array{'aliases': array{Psr\EventDispatcher\EventDispatcherInterface::class: class-string, Psr\EventDispatcher\ListenerProviderInterface::class: class-string}, 'delegators': array{Laminas\Stratigility\Middleware\ErrorHandler::class: list<class-string>}, 'factories': array{Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate::class: class-string, Psr\Log\LoggerInterface::class: class-string, Webware\Log\Handler\PhpDbHandler::class: class-string, Webware\Log\Http\Middleware\MonologMiddleware::class: class-string, Webware\Log\Listener\Psr3LogPsr14Listener::class: class-string, Webware\Log\Processor\LaminasI18nProcessor::class: class-string}, 'invokables': array{Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider::class: class-string, Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider::class: class-string, Webware\Log\Processor\RamseyUuidProcessor::class: class-string}}`, but found `array{'aliases': array{'Psr\EventDispatcher\EventDispatcherInterface': class-string('Phly\EventDispatcher\EventDispatcher'), 'Psr\EventDispatcher\ListenerProviderInterface': class-string('Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate')}, 'delegators': array{'Laminas\Stratigility\Middleware\ErrorHandler': list{class-string('Webware\Log\Container\MezzioErrorHandlerDelegator')}}, 'factories': array{'Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate': class-string('Webware\Log\Container\ListenerProviderAggregateFactory'), 'Psr\Log\LoggerInterface': class-string('Webware\Log\Container\LogFactory'), 'Webware\Log\Handler\PhpDbHandler': class-string('Webware\Log\Handler\PhpDbHandlerFactory'), 'Webware\Log\Http\Middleware\MonologMiddleware': class-string('Webware\Log\Http\Middleware\Container\MonologMiddlewareFactory'), 'Webware\Log\Listener\Psr3LogPsr14Listener': class-string('Webware\Log\Listener\Container\Psr3LogPsr14ListenerFactory'), 'Webware\Log\Processor\LaminasI18nProcessor': class-string('Webware\Log\Processor\LaminasI18nProcessorFactory')}, 'invokables': array{'Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider': class-string('Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider'), 'Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider': class-string('Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider'), 'Webware\Log\Processor\RamseyUuidProcessor': class-string('Webware\Log\Processor\RamseyUuidProcessor')}}`.'''
message = '''Invalid return type for function `Webware\Log\ConfigProvider::getDependencies`: expected `array{'aliases': array{Psr\EventDispatcher\EventDispatcherInterface::class: class-string, Psr\EventDispatcher\ListenerProviderInterface::class: class-string}, 'delegators': array{Laminas\Stratigility\Middleware\ErrorHandler::class: list<class-string>}, 'factories': array{Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate::class: class-string, Psr\Log\LoggerInterface::class: class-string, Webware\Log\Console\InitDbCommand::class: class-string, Webware\Log\Handler\PhpDbHandler::class: class-string, Webware\Log\Http\Middleware\MonologMiddleware::class: class-string, Webware\Log\Listener\Psr3LogPsr14Listener::class: class-string, Webware\Log\Processor\LaminasI18nProcessor::class: class-string}, 'invokables': array{Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider::class: class-string, Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider::class: class-string, Webware\Log\Processor\RamseyUuidProcessor::class: class-string}}`, but found `array{'aliases': array{'Psr\EventDispatcher\EventDispatcherInterface': class-string('Phly\EventDispatcher\EventDispatcher'), 'Psr\EventDispatcher\ListenerProviderInterface': class-string('Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate')}, 'delegators': array{'Laminas\Stratigility\Middleware\ErrorHandler': list{class-string('Webware\Log\Container\MezzioErrorHandlerDelegator')}}, 'factories': array{'Phly\EventDispatcher\ListenerProvider\ListenerProviderAggregate': class-string('Webware\Log\Container\ListenerProviderAggregateFactory'), 'Psr\Log\LoggerInterface': class-string('Webware\Log\Container\LogFactory'), 'Webware\Log\Console\InitDbCommand': class-string('Webware\Log\Console\Container\InitDbCommandFactory'), 'Webware\Log\Handler\PhpDbHandler': class-string('Webware\Log\Handler\PhpDbHandlerFactory'), 'Webware\Log\Http\Middleware\MonologMiddleware': class-string('Webware\Log\Http\Middleware\Container\MonologMiddlewareFactory'), 'Webware\Log\Listener\Psr3LogPsr14Listener': class-string('Webware\Log\Listener\Container\Psr3LogPsr14ListenerFactory'), 'Webware\Log\Processor\LaminasI18nProcessor': class-string('Webware\Log\Processor\LaminasI18nProcessorFactory')}, 'invokables': array{'Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider': class-string('Phly\EventDispatcher\ListenerProvider\AttachableListenerProvider'), 'Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider': class-string('Phly\EventDispatcher\ListenerProvider\PrioritizedListenerProvider'), 'Webware\Log\Processor\RamseyUuidProcessor': class-string('Webware\Log\Processor\RamseyUuidProcessor')}}`.'''
count = 1

[[issues]]
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@
"phpunit/phpunit": "^13.3.0",
"roave/backward-compatibility-check": "^8.21.0",
"roave/security-advisories": "dev-master",
"webware/webware-console": "1.0.x-dev",
"webware/webware-tools": "^1.0.0-beta.2"
},
"suggest": {
"php-db/phpdb-mysql": "Required when using PhpDbHandler with a MySQL/MariaDB database"
"php-db/phpdb-mysql": "Required when using PhpDbHandler with a MySQL/MariaDB database",
"webware/webware-console": "Provides the console that runs log:init-db to create the log table"
},
"extra": {
"laminas": {
Expand Down
Loading
Loading