Skip to content

Commit

Permalink
Merge pull request #172 from maxmind/greg/run-php-cs-fixer
Browse files Browse the repository at this point in the history
Run latest version of php-cs-fixer
  • Loading branch information
faktas2 authored Jun 17, 2024
2 parents 47edbb8 + 4bcaa93 commit 825f4af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function mmdb_autoload($class): void
* to extend in the future if (for example) the test classes
* begin to use one another.
*/
$namespace_map = ['MaxMind\\Db\\' => __DIR__ . '/src/MaxMind/Db/'];
$namespace_map = ['MaxMind\Db\\' => __DIR__ . '/src/MaxMind/Db/'];

foreach ($namespace_map as $prefix => $dir) {
// First swap out the namespace prefix with a directory...
Expand Down
2 changes: 1 addition & 1 deletion tests/MaxMind/Db/Test/ReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function testV6AddressV4Database(): void
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Error looking up 2001::. You attempted to look up an IPv6 address in an IPv4-only database');
if (\defined('MaxMind\\Db\\Reader::MMDB_LIB_VERSION') && version_compare(Reader::MMDB_LIB_VERSION, '1.2.0', '<')) {
if (\defined('MaxMind\Db\Reader::MMDB_LIB_VERSION') && version_compare(Reader::MMDB_LIB_VERSION, '1.2.0', '<')) {
$this->markTestSkipped('MMDB_LIB_VERSION < 1.2.0');
}
$reader = new Reader('tests/data/test-data/MaxMind-DB-test-ipv4-24.mmdb');
Expand Down

0 comments on commit 825f4af

Please sign in to comment.