add some type hinting

This commit is contained in:
Robin Appelman 2019-11-06 14:33:04 +01:00
commit 5ba2a3cc31
3 changed files with 7 additions and 7 deletions

View file

@ -80,7 +80,7 @@ class DiscoverHandler {
return false;
}
private function hashDefinition(SearchPropertyDefinition $definition) {
private function hashDefinition(SearchPropertyDefinition $definition): string {
return $definition->dataType
. (($definition->searchable) ? '1' : '0')
. (($definition->sortable) ? '1' : '0')
@ -91,7 +91,7 @@ class DiscoverHandler {
* @param SearchPropertyDefinition[] $propertyDefinitions
* @return BasicSearchSchema
*/
private function getBasicSearchForProperties(array $propertyDefinitions) {
private function getBasicSearchForProperties(array $propertyDefinitions): BasicSearchSchema {
/** @var PropDesc[] $groups */
$groups = [];
foreach ($propertyDefinitions as $propertyDefinition) {