From ecbd9b8616d5da38e6b129a50b17f10a42a77758 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 7 May 2014 10:00:41 +0200 Subject: [PATCH] Sortable: Fix PHPDoc for parameter `$direction' `$direction' must be a string instead of an integer because the direction constants `SORT_ASC' and `SORT_DESC' are strings. --- library/Icinga/Data/BaseQuery.php | 2 +- library/Icinga/Data/Sortable.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Data/BaseQuery.php b/library/Icinga/Data/BaseQuery.php index 4101b7b5c..ed51d657b 100644 --- a/library/Icinga/Data/BaseQuery.php +++ b/library/Icinga/Data/BaseQuery.php @@ -105,7 +105,7 @@ abstract class BaseQuery implements QueryInterface, Queryable * * * @param string $field - * @param int $direction + * @param string $direction * * @return self */ diff --git a/library/Icinga/Data/Sortable.php b/library/Icinga/Data/Sortable.php index 73dab5ecf..5445f508e 100644 --- a/library/Icinga/Data/Sortable.php +++ b/library/Icinga/Data/Sortable.php @@ -26,7 +26,7 @@ interface Sortable * * * @param string $field - * @param int $direction + * @param string $direction * * @return self */