Skip to content

Commit 18979e6

Browse files
committed
Fix return type declaration for Form::offsetGet()
1 parent e53feac commit 18979e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/DomCrawler/Form.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ public function offsetExists($name): bool
232232
return $this->has($name);
233233
}
234234

235+
/**
236+
* Gets the value of a field.
237+
*
238+
* @param string $name
239+
*
240+
* @return FormField|FormField[]|FormField[][]
241+
*/
242+
#[\ReturnTypeWillChange]
235243
public function offsetGet($name)
236244
{
237245
return $this->get($name);

0 commit comments

Comments
 (0)