diff --git a/src/Plugin/Sharding/Payload.php b/src/Plugin/Sharding/Payload.php index 22a7755a..f5d394b3 100644 --- a/src/Plugin/Sharding/Payload.php +++ b/src/Plugin/Sharding/Payload.php @@ -97,7 +97,7 @@ protected static function fromCreate(Request $request): static { $self = new static(); // We just need to do something, but actually its' just for PHPstan $self->path = $request->path; - $self->type = strpos($request->payload, 'create') === 0 ? 'create' : 'alter'; + $self->type = stripos($request->payload, 'create') === 0 ? 'create' : 'alter'; $self->cluster = $matches['cluster'] ?? ''; $self->table = $matches['table']; $self->structure = $matches['structure'];