mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-04 10:04:06 +02:00
add some type hinting
This commit is contained in:
parent
76953efe15
commit
5ba2a3cc31
3 changed files with 7 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue