Skip to content

Commit b87ac8d

Browse files
lucasmichottaylorotwell
authored andcommitted
[5.5] DelegatesToResource: fix offsetExists. (laravel#20887)
* Fix offsetExists. * Switch argumebts
1 parent fd8757f commit b87ac8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Http/Resources/DelegatesToResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function resolveRouteBinding($value)
4646
*/
4747
public function offsetExists($offset)
4848
{
49-
return array_key_exists($this->resource[$offset]);
49+
return array_key_exists($offset, $this->resource);
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)