Skip to content

Commit

Permalink
Alias conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed May 16, 2021
1 parent bf4c141 commit 07b3f0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions system/Cache/Handlers/WincacheHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function increment(string $key, int $offset = 1)
$success = false;
$value = wincache_ucache_inc($key, $offset, $success);

return ($success === true) ? $value : false; // @phpstan-ignore-line
return ($success === true) ? $value : false;
}

//--------------------------------------------------------------------
Expand All @@ -169,7 +169,7 @@ public function decrement(string $key, int $offset = 1)
$success = false;
$value = wincache_ucache_dec($key, $offset, $success);

return ($success === true) ? $value : false; // @phpstan-ignore-line
return ($success === true) ? $value : false;
}

//--------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions system/Config/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
use Config\Migrations;
use Config\Modules;
use Config\Pager as ConfigPager;
use Config\Services;
use Config\Services as AppServices;
use Config\Toolbar as ConfigToolbar;
use Config\Validation as ConfigValidation;
use Config\View as ConfigView;
Expand All @@ -85,7 +85,7 @@
* whereas with DI Containers there usually isn't a way for them to do this.
*
* Warning: To allow overrides by service providers do not use static calls,
* rather call out to \Config\Services instead.
* instead call out to \Config\Services (imported as AppServices).
*
* @see http://blog.ircmaxell.com/2015/11/simple-easy-risk-and-change.html
* @see http://www.infoq.com/presentations/Simple-Made-Easy
Expand Down Expand Up @@ -189,7 +189,7 @@ protected static function getSharedInstance(string $key, ...$params)
// Make sure $getShared is false
$params[] = false;

static::$instances[$key] = Services::$key(...$params);
static::$instances[$key] = AppServices::$key(...$params);
}

return static::$instances[$key];
Expand Down
2 changes: 1 addition & 1 deletion system/Database/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function createDatabase(string $dbName, bool $ifNotExists = false): bool
{
throw new DatabaseException('Unable to create the specified database.', 0, $e);
}
// @phpstan-ignore-next-line

return false; // @codeCoverageIgnore
}
}
Expand Down

0 comments on commit 07b3f0c

Please sign in to comment.