Skip to content

Commit 8fc9589

Browse files
Merge branch '4.4'
* 4.4: some backports from master Add return types to internal|final|private methods [HttpFoundation] Precalculate session expiry timestamp
2 parents a1fe98e + 4ba771b commit 8fc9589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FormFieldRegistry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function &get(string $name)
9090
*
9191
* @return bool Whether the form has the given field
9292
*/
93-
public function has(string $name)
93+
public function has(string $name): bool
9494
{
9595
try {
9696
$this->get($name);
@@ -128,7 +128,7 @@ public function set(string $name, $value)
128128
*
129129
* @return FormField[] The list of fields as [string] Fully qualified name => (mixed) value)
130130
*/
131-
public function all()
131+
public function all(): array
132132
{
133133
return $this->walk($this->fields, $this->base);
134134
}

0 commit comments

Comments
 (0)