Skip to content

Commit ab54c52

Browse files
committed
4.0 ready 🚀
1 parent 7590883 commit ab54c52

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/Model/Endpoint/Schema/ClientSchema.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ClientSchema extends Schema
99
/**
1010
* {@inheritDoc}
1111
*/
12-
public function initialize()
12+
public function initialize(): void
1313
{
1414
parent::initialize();
1515

‎src/Model/Endpoint/Schema/ProjectSchema.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ProjectSchema extends Schema
99
/**
1010
* {@inheritDoc}
1111
*/
12-
public function initialize()
12+
public function initialize(): void
1313
{
1414
parent::initialize();
1515

‎src/Webservice/ClockifyWebservice.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getBaseUrl()
3030
return '/api/v1/' . $this->getEndpoint();
3131
}
3232

33-
public function nestedResource(array $conditions): ?string
33+
public function nestedResource(array $conditions): ?string
3434
{
3535
if(empty($conditions)) return false;
3636
if(empty($this->_nestedResources)) return false;
@@ -141,7 +141,7 @@ protected function _write(Query $query, array $options = [])
141141
$nestedResource = $this->nestedResource($query->getOptions()['nested'])
142142
) $url = $nestedResource;
143143

144-
switch ($query->action())
144+
switch ($query->clause('action'))
145145
{
146146
case Query::ACTION_CREATE:
147147
$response = $this->getDriver()->getClient()->post($url, json_encode($query->set()));

0 commit comments

Comments
 (0)