Skip to content

Commit 4621ba4

Browse files
committed
Use str_contains instead of strpos
1 parent 2a2ceed commit 4621ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private function flatModelFor(string $class, string $type, string $ipAddress): A
242242

243243
private function getRecord(string $class, string $type, string $ipAddress): array
244244
{
245-
if (strpos($this->dbType, $type) === false) {
245+
if (!str_contains($this->dbType, $type)) {
246246
$method = lcfirst((new \ReflectionClass($class))->getShortName());
247247

248248
throw new \BadMethodCallException(

0 commit comments

Comments
 (0)