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 38a7ac5 commit 1d1dbf7Copy full SHA for 1d1dbf7
1 file changed
src/Schema/Quoter.php
@@ -12,8 +12,6 @@
12
use function str_contains;
13
use function str_replace;
14
use function str_starts_with;
15
-use function strlen;
16
-use function strpos;
17
use function strrpos;
18
use function substr;
19
@@ -124,7 +122,7 @@ function ($matches) {
124
122
125
123
public function quoteTableName(string $name): string
126
{
127
- if (str_starts_with($name, '(') && strpos($name, ')') === strlen($name) - 1) {
+ if (str_starts_with($name, '(') && str_ends_with($name, ')')) {
128
return $name;
129
}
130
0 commit comments