Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion src/Driver/Cassandra/Cassandra.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
class Cassandra extends Driver implements CRUDAbleInterface, QueryableInterface
{
public const ID = "cassandra";
public const string ID = "cassandra";
protected string $id = self::ID;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Mysqli/Mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
class Mysqli extends Driver implements CRUDAbleInterface, CRUDQueryableInterface
{
public const ID = "mysqli";
public const string ID = "mysqli";
protected string $id = self::ID;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/OpenSearch/OpenSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class OpenSearch extends Driver implements CRUDAbleInterface, SearchableInterface
{
public const ID = "opensearch";
public const string ID = "opensearch";
protected string $id = self::ID;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Redis/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class Redis extends Driver implements CRUDAbleInterface, CacheableInterface
{
public const ID = "redis";
public const string ID = "redis";
protected string $id = self::ID;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Test/TestDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class TestDriver extends Driver implements CRUDAbleInterface, CRUDQueryableInterface
{
public const ID = "test";
public const string ID = "test";
protected string $id = self::ID;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Query/CountField.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
class CountField extends SelectField
{
public const COUNT_FIELD = "count";
public const string COUNT_FIELD = "count";

public ?int $function = self::COUNT;
public ?string $alias = self::COUNT_FIELD;
Expand Down
4 changes: 2 additions & 2 deletions src/Query/OrderField.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class OrderField
/**
* Direction constants
*/
const ASCENDING = 0;
const DESCENDING = 1;
const int ASCENDING = 0;
const int DESCENDING = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better as an enum. The value doesn't actually mean anything useful.


/**
* Field name to order by
Expand Down
4 changes: 2 additions & 2 deletions src/Query/WhereGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class WhereGroup implements Iterator, Countable
/**
* Conjunction values
*/
const AND = 0;
const OR = 1;
const int AND = 0;
const int OR = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better as an enum. The value doesn't actually mean anything useful.


/**
* Multiple WhereGroup or WhereCondition objects
Expand Down
Loading