b3d11587ae
cast numeric params to string params
2026-06-08 15:32:45 -07:00
lukinovec
f9636b15cf
Use Arr::wrap instead of (array)
2026-06-08 11:08:34 +02:00
lukinovec
9ea085ef05
Improve wording
...
Co-authored-by: Samuel Stancl <samuel@archte.ch>
2026-06-08 11:02:34 +02:00
lukinovec
4386a3b1a3
Improve annotations in ValidatesDatabaseParameters
2026-06-08 10:38:23 +02:00
lukinovec
6e82a9ee55
Change @mixin annotations to @see
2026-06-08 09:06:10 +02:00
lukinovec
ea20eb13b6
Validate in-memory DBs outside of isInMemory
...
isInMemory should check if the name looks ilke an in-memory database name and return bool (it shouldn't throw validation errors).
Also, make the validation methods non-static.
2026-05-01 15:22:40 +02:00
lukinovec
429e0985fd
Improve code quality and comments
2026-05-01 15:17:38 +02:00
lukinovec
48b4837905
Validate in-memory db names, move SQLite-specific methods to the SQLiteManager
2026-05-01 14:09:56 +02:00
github-actions[bot]
fc6a931a32
Fix code style (php-cs-fixer)
2026-05-01 09:50:30 +00:00
lukinovec
1a01164b87
Make validateFilename accept string instead of ?string
2026-05-01 10:46:37 +02:00
lukinovec
2bdda23a56
Disallow empty strings as filenames
2026-05-01 10:37:22 +02:00
github-actions[bot]
f3836cc623
Fix code style (php-cs-fixer)
2026-05-01 07:34:32 +00:00
lukinovec
9611a05f35
Skip null parameters, throw for other non-string parameters
2026-05-01 09:34:11 +02:00
lukinovec
e8168eb0b9
Add string check to validateFilename, swap validation order
...
Validate characters first, only then throw if the filename is a directory.
2026-05-01 09:16:17 +02:00
lukinovec
d3607f84bf
Use 'allowedCharacters' instead of 'allowlist', code quality
2026-05-01 09:11:55 +02:00
lukinovec
76c324d758
Add validateFilename()
...
Use validateFilename instead of validateParameter in SQLiteDatabaseManager. Directories are no longer considered valid SQLite database names.
2026-05-01 09:03:50 +02:00
lukinovec
37a4c7dd27
Check if paremeter is string
2026-04-30 15:08:46 +02:00
lukinovec
bacbf934e1
Improve validation exception message
2026-04-30 14:52:53 +02:00
lukinovec
46f73c42ad
Improve ValidatesDatabaseParameters comments, delete extra early return
2026-04-30 10:44:36 +02:00
lukinovec
75b74f2e6c
Make validateParameter have void return type
2026-04-30 09:28:48 +02:00
lukinovec
f3f1ab977a
Skip null parameters in validateParameter
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-30 09:15:18 +02:00
lukinovec
85929493d5
Improve ValidatesDatabaseParameters docblocks
2026-04-29 17:35:11 +02:00
lukinovec
740d53e9cc
Rename ValidatesSqlParameters to ValidatesDatabaseParameters
2026-04-29 17:35:11 +02:00