Skip to content

Commit b85856a

Browse files
committed
fix updateOrInsert signature
1 parent c366635 commit b85856a

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/DatastoreConnection.php

+11
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function __construct($config)
5757

5858
/**
5959
* Call datastore client methods.
60+
*
61+
* @param mixed $name
62+
* @param mixed $arguments
6063
*/
6164
public function __call($name, $arguments): void
6265
{
@@ -65,6 +68,8 @@ public function __call($name, $arguments): void
6568

6669
/**
6770
* Make datastore client.
71+
*
72+
* @param mixed $config
6873
*/
6974
public function makeClient($config): self
7075
{
@@ -85,6 +90,8 @@ public function query(): Builder
8590

8691
/**
8792
* Set the table.
93+
*
94+
* @param mixed $table
8895
*/
8996
public function from($table): Builder
9097
{
@@ -118,6 +125,8 @@ public function getClient(): DatastoreClient
118125
/**
119126
* Set the datastore client.
120127
*
128+
* @param mixed $client
129+
*
121130
* @return $this
122131
*/
123132
public function setClient($client): self
@@ -140,6 +149,8 @@ public function table($table, $as = null): Builder
140149

141150
/**
142151
* Set the table/kind name.
152+
*
153+
* @param mixed $kind
143154
*/
144155
public function kind($kind): Builder
145156
{

src/Query/Concerns/QueriesDatastore.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ public function updateFrom(array $values)
10721072
return false;
10731073
}
10741074

1075-
public function updateOrInsert(array $attributes, array $values = [])
1075+
public function updateOrInsert(array $attributes, array|callable $values = [])
10761076
{
10771077
throw new \LogicException('Not Implemented');
10781078

src/Query/Processor.php

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class Processor extends BaseProcessor
1414
* Process Datastore Results.
1515
*
1616
* @param null|mixed $excludeKey
17+
* @param mixed $builder
18+
* @param mixed $results
1719
*
1820
* @return mixed
1921
*/

0 commit comments

Comments
 (0)