Skip to content

Fix dockblock for where/having methods in Select, Delete, Update #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2024
Merged
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
3 changes: 2 additions & 1 deletion src/Sql/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Laminas\Db\Adapter\Driver\DriverInterface;
use Laminas\Db\Adapter\ParameterContainer;
use Laminas\Db\Adapter\Platform\PlatformInterface;
use Laminas\Db\Sql\Predicate\PredicateInterface;

use function array_key_exists;
use function sprintf;
Expand Down Expand Up @@ -86,7 +87,7 @@ public function getRawState($key = null)
/**
* Create where clause
*
* @param Where|Closure|string|array $predicate
* @param Where|Closure|string|array|PredicateInterface $predicate
* @param string $combination One of the OP_* constants from Predicate\PredicateSet
* @return $this Provides a fluent interface
*/
Expand Down
5 changes: 3 additions & 2 deletions src/Sql/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Laminas\Db\Adapter\Driver\DriverInterface;
use Laminas\Db\Adapter\ParameterContainer;
use Laminas\Db\Adapter\Platform\PlatformInterface;
use Laminas\Db\Sql\Predicate\PredicateInterface;

use function array_key_exists;
use function count;
Expand Down Expand Up @@ -268,7 +269,7 @@ public function join($name, $on, $columns = self::SQL_STAR, $type = self::JOIN_I
/**
* Create where clause
*
* @param Where|Closure|string|array|Predicate\PredicateInterface $predicate
* @param Where|Closure|string|array|PredicateInterface $predicate
* @param string $combination One of the OP_* constants from Predicate\PredicateSet
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
Expand Down Expand Up @@ -302,7 +303,7 @@ public function group($group)
/**
* Create having clause
*
* @param Where|Having|Closure|string|array $predicate
* @param Having|Closure|string|array|PredicateInterface $predicate
* @param string $combination One of the OP_* constants from Predicate\PredicateSet
* @return $this Provides a fluent interface
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Sql/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Laminas\Db\Adapter\Driver\Pdo\Pdo;
use Laminas\Db\Adapter\ParameterContainer;
use Laminas\Db\Adapter\Platform\PlatformInterface;
use Laminas\Db\Sql\Predicate\PredicateInterface;
use Laminas\Stdlib\PriorityList;

use function array_key_exists;
Expand Down Expand Up @@ -115,7 +116,7 @@ public function set(array $values, $flag = self::VALUES_SET)
/**
* Create where clause
*
* @param Where|Closure|string|array $predicate
* @param Where|Closure|string|array|PredicateInterface $predicate
* @param string $combination One of the OP_* constants from Predicate\PredicateSet
* @return $this Provides a fluent interface
* @throws Exception\InvalidArgumentException
Expand Down