Skip to content

Commit f412f33

Browse files
authored
Merge pull request #210 from maxmind/horgh/lint
Fix lint
2 parents 2a2ceed + f3b5290 commit f412f33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,6 @@ The GeoIP2 PHP API uses [Semantic Versioning](https://semver.org/).
437437

438438
## Copyright and License ##
439439

440-
This software is Copyright (c) 2013-2020 by MaxMind, Inc.
440+
This software is Copyright (c) 2013-2023 by MaxMind, Inc.
441441

442442
This is free software, licensed under the Apache License, Version 2.0.

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)