Skip to content

Commit

Permalink
chore: add default locate constant
Browse files Browse the repository at this point in the history
tanhongit committed Jan 13, 2025
1 parent 62956e6 commit 12e4e46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Constants/AppConstant.php
Original file line number Diff line number Diff line change
@@ -4,10 +4,12 @@

class AppConstant
{
public const APP_NAME = 'CSlant Blog';
public const string APP_NAME = 'CSlant Blog';

Check failure on line 7 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.1

Class constants with native types are supported only on PHP 8.3 and later.

Check failure on line 7 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.2

Class constants with native types are supported only on PHP 8.3 and later.

public const APP_AUTHOR = 'CSlant';
public const string APP_AUTHOR = 'CSlant';

Check failure on line 9 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.1

Class constants with native types are supported only on PHP 8.3 and later.

Check failure on line 9 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.2

Class constants with native types are supported only on PHP 8.3 and later.

// App Environment: local, staging, production
public const APP_ENV_PROD = 'production';
public const string APP_ENV_PROD = 'production';

Check failure on line 12 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.1

Class constants with native types are supported only on PHP 8.3 and later.

Check failure on line 12 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.2

Class constants with native types are supported only on PHP 8.3 and later.

public const string DEFAULT_LOCALE = 'en';

Check failure on line 14 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.1

Class constants with native types are supported only on PHP 8.3 and later.

Check failure on line 14 in src/Constants/AppConstant.php

GitHub Actions / PHPStan - P8.2

Class constants with native types are supported only on PHP 8.3 and later.
}

0 comments on commit 12e4e46

Please sign in to comment.