mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Update Composer dependencies, clean up PHPStan config file, and remove Constants.php from Composer in favor of PHPStan configuration
This commit is contained in:
parent
c203de4c6b
commit
11e5770413
5 changed files with 22 additions and 24 deletions
|
@ -1,5 +1,4 @@
|
|||
<?
|
||||
// Auto-included by Composer in `composer.json` to satisfy PHPStan.
|
||||
use Safe\DateTimeImmutable;
|
||||
use function Safe\get_cfg_var;
|
||||
use function Safe\define;
|
||||
|
@ -15,7 +14,7 @@ const SITE_TZ = new DateTimeZone('America/Chicago');
|
|||
const SITE_STATUS_LIVE = 'live';
|
||||
const SITE_STATUS_DEV = 'dev';
|
||||
|
||||
define('SITE_STATUS', get_cfg_var('app.site_status') ?: SITE_STATUS_DEV); // Set in the PHP INI configuration for both CLI and FPM. Have to use `define()` and not `const` so we can use a function.
|
||||
define('SITE_STATUS', get_cfg_var('app.site_status')); // Set in the PHP INI configuration for both CLI and FPM. Have to use `define()` and not `const` so we can use a function.
|
||||
|
||||
// No trailing slash on any of the below constants.
|
||||
if(SITE_STATUS == SITE_STATUS_LIVE){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue