Skip to content

Commit 6da0256

Browse files
committed
bug #500 Fix Form::offsetGet() return type (chalasr)
This PR was merged into the 1.0.x-dev branch. Discussion ---------- Fix `Form::offsetGet()` return type Commits ------- 18979e6 Fix return type declaration for Form::offsetGet()
2 parents e53feac + 18979e6 commit 6da0256

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)