Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/ADR/Events/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,32 @@ class Event
/**
* @var string
*/
const ADR_AFTER_EXECUTE_ACTION = 'adr:afterExecuteAction';
const string ADR_AFTER_EXECUTE_ACTION = 'adr:afterExecuteAction';

/**
* @var string
*/
const ADR_BEFORE_EXECUTE_ACTION = 'adr:beforeExecuteAction';
const string ADR_BEFORE_EXECUTE_ACTION = 'adr:beforeExecuteAction';

/**
* @var string
*/
const APPLICATION_AFTER_HANDLE = 'application:afterHandle';
const string APPLICATION_AFTER_HANDLE = 'application:afterHandle';

/**
* @var string
*/
const APPLICATION_BEFORE_HANDLE = 'application:beforeHandle';
const string APPLICATION_BEFORE_HANDLE = 'application:beforeHandle';

/**
* @var string
*/
const PIPELINE_AFTER_DISPATCH = 'pipeline:afterDispatch';
const string PIPELINE_AFTER_DISPATCH = 'pipeline:afterDispatch';

/**
* @var string
*/
const PIPELINE_BEFORE_DISPATCH = 'pipeline:beforeDispatch';
const string PIPELINE_BEFORE_DISPATCH = 'pipeline:beforeDispatch';


/**
Expand Down
42 changes: 21 additions & 21 deletions src/ADR/Payload/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,107 +28,107 @@ class Status
/**
* @var string
*/
const ACCEPTED = 'ACCEPTED';
const string ACCEPTED = 'ACCEPTED';

/**
* @var string
*/
const AUTHENTICATED = 'AUTHENTICATED';
const string AUTHENTICATED = 'AUTHENTICATED';

/**
* @var string
*/
const AUTHORIZED = 'AUTHORIZED';
const string AUTHORIZED = 'AUTHORIZED';

/**
* @var string
*/
const CREATED = 'CREATED';
const string CREATED = 'CREATED';

/**
* @var string
*/
const DELETED = 'DELETED';
const string DELETED = 'DELETED';

/**
* @var string
*/
const ERROR = 'ERROR';
const string ERROR = 'ERROR';

/**
* @var string
*/
const FAILURE = 'FAILURE';
const string FAILURE = 'FAILURE';

/**
* @var string
*/
const FOUND = 'FOUND';
const string FOUND = 'FOUND';

/**
* @var string
*/
const METHOD_NOT_ALLOWED = 'METHOD_NOT_ALLOWED';
const string METHOD_NOT_ALLOWED = 'METHOD_NOT_ALLOWED';

/**
* @var string
*/
const NOT_ACCEPTED = 'NOT_ACCEPTED';
const string NOT_ACCEPTED = 'NOT_ACCEPTED';

/**
* @var string
*/
const NOT_AUTHENTICATED = 'NOT_AUTHENTICATED';
const string NOT_AUTHENTICATED = 'NOT_AUTHENTICATED';

/**
* @var string
*/
const NOT_AUTHORIZED = 'NOT_AUTHORIZED';
const string NOT_AUTHORIZED = 'NOT_AUTHORIZED';

/**
* @var string
*/
const NOT_CREATED = 'NOT_CREATED';
const string NOT_CREATED = 'NOT_CREATED';

/**
* @var string
*/
const NOT_DELETED = 'NOT_DELETED';
const string NOT_DELETED = 'NOT_DELETED';

/**
* @var string
*/
const NOT_FOUND = 'NOT_FOUND';
const string NOT_FOUND = 'NOT_FOUND';

/**
* @var string
*/
const NOT_UPDATED = 'NOT_UPDATED';
const string NOT_UPDATED = 'NOT_UPDATED';

/**
* @var string
*/
const NOT_VALID = 'NOT_VALID';
const string NOT_VALID = 'NOT_VALID';

/**
* @var string
*/
const PROCESSING = 'PROCESSING';
const string PROCESSING = 'PROCESSING';

/**
* @var string
*/
const SUCCESS = 'SUCCESS';
const string SUCCESS = 'SUCCESS';

/**
* @var string
*/
const UPDATED = 'UPDATED';
const string UPDATED = 'UPDATED';

/**
* @var string
*/
const VALID = 'VALID';
const string VALID = 'VALID';


/**
Expand Down
2 changes: 1 addition & 1 deletion src/Acl/Adapter/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Storage extends \Phalcon\Acl\Adapter\Memory implements \Phalcon\Contracts\
/**
* @var int
*/
const SNAPSHOT_VERSION = 1;
const int SNAPSHOT_VERSION = 1;

protected string $key;

Expand Down
4 changes: 2 additions & 2 deletions src/Acl/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class Enum
/**
* @var int
*/
const ALLOW = 1;
const int ALLOW = 1;

/**
* @var int
*/
const DENY = 0;
const int DENY = 0;
}
2 changes: 1 addition & 1 deletion src/Annotations/Annotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Annotation
*
* @var int
*/
const T_RESOLVED = 1000;
const int T_RESOLVED = 1000;

/**
* Annotation Arguments
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/AttributesReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AttributesReader implements \Phalcon\Annotations\ReaderInterface
*
* @var string
*/
const PHALCON_NAMESPACE = 'Phalcon\\\\Annotations\\\\';
const string PHALCON_NAMESPACE = 'Phalcon\\\\Annotations\\\\';


/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Connect extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Delete extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Get extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Head.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Head extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Options extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Patch extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Post extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Purge.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Purge extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Put.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Put extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @phpstan-import-type annotations_route_methods from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Router/Trace.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @phpstan-import-type annotations_route_converters from AnnotationsTypes
* @phpstan-import-type annotations_route_paths from AnnotationsTypes
*/
#[\Attribute(68)]
#[\Attribute(132)]
class Trace extends \Phalcon\Annotations\Router\Route
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Auth/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class AbstractAdapter implements \Phalcon\Contracts\Auth\Adapter\Adapte
*
* @var string
*/
const DUMMY_HASH = '$2y$10$YMmGMSXz.5U3bjjJ2qx45uElzUrlaBiS8L70VaVnmsKYFJVcam8gW';
const string DUMMY_HASH = '$2y$10$YMmGMSXz.5U3bjjJ2qx45uElzUrlaBiS8L70VaVnmsKYFJVcam8gW';

protected \Phalcon\Contracts\Auth\Adapter\AdapterConfig $config;

Expand Down
2 changes: 1 addition & 1 deletion src/Auth/Guard/Config/SessionGuardConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SessionGuardConfig extends \Phalcon\Auth\Guard\Config\AbstractGuardConfig
*
* @var int
*/
const DEFAULT_REMEMBER_TTL = 31536000;
const int DEFAULT_REMEMBER_TTL = 31536000;

private string $name;

Expand Down
2 changes: 1 addition & 1 deletion src/Cli/Router/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Route implements \Phalcon\Cli\Router\RouteInterface
/**
* @var string
*/
const DEFAULT_DELIMITER = ' ';
const string DEFAULT_DELIMITER = ' ';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Config extends Collection implements \Phalcon\Config\ConfigInterface
/**
* @var string
*/
const DEFAULT_PATH_DELIMITER = '.';
const string DEFAULT_PATH_DELIMITER = '.';

/**
* @var string
Expand Down
8 changes: 4 additions & 4 deletions src/Container/Definition/DefinitionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ class DefinitionType
/**
* @var string
*/
const CLOSURE_TYPE = 'closure';
const string CLOSURE_TYPE = 'closure';

/**
* @var string
*/
const OBJECT_TYPE = 'object';
const string OBJECT_TYPE = 'object';

/**
* @var string
*/
const PARAMETER_TYPE = 'parameter';
const string PARAMETER_TYPE = 'parameter';

/**
* @var string
*/
const STRING_TYPE = 'string';
const string STRING_TYPE = 'string';
}
6 changes: 3 additions & 3 deletions src/Container/Definition/ServiceLifetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ class ServiceLifetime
/**
* @var string
*/
const SCOPED = 'SCOPED';
const string SCOPED = 'SCOPED';

/**
* @var string
*/
const SINGLETON = 'SINGLETON';
const string SINGLETON = 'SINGLETON';

/**
* @var string
*/
const TRANSIENT = 'TRANSIENT';
const string TRANSIENT = 'TRANSIENT';
}
Loading
Loading