Skip to content
Open
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
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 @@ -25,7 +25,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 @@ -12,7 +12,7 @@

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

/**
Expand Down
4 changes: 2 additions & 2 deletions 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 All @@ -18,4 +18,4 @@ public function __construct()
{
parent::__construct("*");
}
}
}
6 changes: 3 additions & 3 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;

/**
* Field name to order by
Expand Down Expand Up @@ -75,4 +75,4 @@ public function setField(string $field): OrderField
$this->field = $field;
return $this;
}
}
}
6 changes: 3 additions & 3 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;

/**
* Multiple WhereGroup or WhereCondition objects
Expand Down Expand Up @@ -128,4 +128,4 @@ public function count(): int
{
return count($this->group);
}
}
}
Loading