mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Add some PHP 8.3-only features.
This commit is contained in:
@@ -34,7 +34,7 @@ use SplObjectStorage;
|
||||
*/
|
||||
class Calculator
|
||||
{
|
||||
public const DEFAULT_INTERVAL = 1;
|
||||
public const int DEFAULT_INTERVAL = 1;
|
||||
private static ?SplObjectStorage $intervalMap = null;
|
||||
private static array $intervals = [];
|
||||
|
||||
|
||||
@@ -30,5 +30,5 @@ namespace FireflyIII\Support\Calendar\Periodicity;
|
||||
*/
|
||||
final class Bimonthly extends Monthly
|
||||
{
|
||||
public const INTERVAL = 2;
|
||||
public const int INTERVAL = 2;
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@ namespace FireflyIII\Support\Calendar\Periodicity;
|
||||
*/
|
||||
final class Fortnightly extends Weekly
|
||||
{
|
||||
public const INTERVAL = 2;
|
||||
public const int INTERVAL = 2;
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@ namespace FireflyIII\Support\Calendar\Periodicity;
|
||||
*/
|
||||
final class HalfYearly extends Monthly
|
||||
{
|
||||
public const INTERVAL = 6;
|
||||
public const int INTERVAL = 6;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace FireflyIII\Support\Calendar\Periodicity;
|
||||
*/
|
||||
abstract class Interval implements Interspacable
|
||||
{
|
||||
public const INTERVAL = 1;
|
||||
public const int INTERVAL = 1;
|
||||
|
||||
/**
|
||||
* @param int $skip
|
||||
|
||||
@@ -30,5 +30,5 @@ namespace FireflyIII\Support\Calendar\Periodicity;
|
||||
*/
|
||||
final class Quarterly extends Monthly
|
||||
{
|
||||
public const INTERVAL = 3;
|
||||
public const int INTERVAL = 3;
|
||||
}
|
||||
|
||||
@@ -66,8 +66,8 @@ class ExportDataGenerator
|
||||
{
|
||||
use ConvertsDataTypes;
|
||||
|
||||
private const ADD_RECORD_ERR = 'Could not add record to set: %s';
|
||||
private const EXPORT_ERR = 'Could not export to string: %s';
|
||||
private const string ADD_RECORD_ERR = 'Could not add record to set: %s';
|
||||
private const string EXPORT_ERR = 'Could not export to string: %s';
|
||||
private Collection $accounts;
|
||||
private Carbon $end;
|
||||
private bool $exportAccounts;
|
||||
|
||||
@@ -35,15 +35,15 @@ use Illuminate\Support\Collection;
|
||||
class AccountSearch implements GenericSearchInterface
|
||||
{
|
||||
/** @var string */
|
||||
public const SEARCH_ALL = 'all';
|
||||
public const string SEARCH_ALL = 'all';
|
||||
/** @var string */
|
||||
public const SEARCH_IBAN = 'iban';
|
||||
public const string SEARCH_IBAN = 'iban';
|
||||
/** @var string */
|
||||
public const SEARCH_ID = 'id';
|
||||
public const string SEARCH_ID = 'id';
|
||||
/** @var string */
|
||||
public const SEARCH_NAME = 'name';
|
||||
public const string SEARCH_NAME = 'name';
|
||||
/** @var string */
|
||||
public const SEARCH_NUMBER = 'number';
|
||||
public const string SEARCH_NUMBER = 'number';
|
||||
private string $field;
|
||||
private string $query;
|
||||
private array $types;
|
||||
|
||||
@@ -37,8 +37,8 @@ use Psr\Container\NotFoundExceptionInterface;
|
||||
*/
|
||||
class OAuthKeys
|
||||
{
|
||||
private const PRIVATE_KEY = 'oauth_private_key';
|
||||
private const PUBLIC_KEY = 'oauth_public_key';
|
||||
private const string PRIVATE_KEY = 'oauth_private_key';
|
||||
private const string PUBLIC_KEY = 'oauth_public_key';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user