We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35ffd9 commit 294a237Copy full SHA for 294a237
2 files changed
guide/index.rst
@@ -325,7 +325,7 @@ A basic example of a table for sessions is below:
325
.. code-block:: sql
326
327
CREATE TABLE `Sessions` (
328
- `id` varchar(128) NOT NULL,
+ `id` char(32) NOT NULL,
329
`timestamp` timestamp NOT NULL,
330
`data` blob NOT NULL,
331
`ip` varchar(45) NOT NULL, -- optional
src/SaveHandlers/DatabaseHandler.php
@@ -23,7 +23,7 @@
23
*
24
* ```sql
25
* CREATE TABLE `Sessions` (
26
- * `id` varchar(128) NOT NULL,
+ * `id` char(32) NOT NULL,
27
* `timestamp` timestamp NOT NULL,
28
* `data` blob NOT NULL,
29
* `ip` varchar(45) NOT NULL, -- optional
@@ -35,8 +35,6 @@
35
* );
36
* ```
37
38
- * NOTE: As of PHP 8.4 the id column can be `char(32)`.
39
- *
40
* @package session
41
*/
42
class DatabaseHandler extends SaveHandler
0 commit comments