{"record":{"id":"5728b7636e56a2c0","repo":"symfony/http-foundation","slug":"unsupported-connection-s","errorCode":null,"errorMessage":"Unsupported Connection: \"%s\".","messagePattern":"Unsupported Connection: \"(.+?)\"\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"Session/Storage/Handler/SessionHandlerFactory.php","lineNumber":52,"sourceCode":"            case $connection instanceof \\RedisArray:\n            case $connection instanceof \\RedisCluster:\n            case $connection instanceof \\Predis\\ClientInterface:\n                return new RedisSessionHandler($connection);\n\n            case $connection instanceof \\Memcached:\n                return new MemcachedSessionHandler($connection);\n\n            case $connection instanceof \\PDO:\n                return new PdoSessionHandler($connection);\n\n            case !\\is_string($connection):\n                throw new \\InvalidArgumentException(\\sprintf('Unsupported Connection: \"%s\".', get_debug_type($connection)));\n            case str_starts_with($connection, 'file://'):\n                $savePath = substr($connection, 7);\n\n                return new StrictSessionHandler(new NativeFileSessionHandler('' === $savePath ? null : $savePath));","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/symfony/http-foundation/blob/5aea19cd678fa4140f6108406f1096de5e9ed6e4/Session/Storage/Handler/SessionHandlerFactory.php#L34-L70","documentation":"An InvalidArgumentException thrown by SessionHandlerFactory::createHandler() when the given $connection is neither a recognized connection object (Redis, Relay, RedisArray, RedisCluster, Predis client, Memcached, PDO) nor a string DSN. The %s is filled with get_debug_type($connection), naming the unsupported type that was passed to the factory.","triggerScenarios":"Thrown at Session/Storage/Handler/SessionHandlerFactory.php:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a supported connection object (\\Redis, Relay, \\RedisArray, \\RedisCluster, Predis\\ClientInterface, \\Memcached, \\PDO) or a DSN string","Cast the configured connection to a string DSN (e.g. 'redis://...', 'file://...') before calling the factory","Check get_debug_type($connection) at the call site to find what wrong value is being injected"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5aea19cd678fa4140f6108406f1096de5e9ed6e4","analyzedAt":"2026-09-13T01:52:22.855Z","contentChangedAt":"2026-09-13T01:52:22.855Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}