Skip to content

Commit 51653a1

Browse files
committed
fix undefined index access
1 parent 5182ba1 commit 51653a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/spec/Encoding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function attributes(): array
4949
*/
5050
public function __construct(array $data)
5151
{
52-
if (!isset($data['explode'])) {
52+
if (!isset($data['explode']) && isset($data['style'])) {
5353
// Spec: When style is form, the default value is true.
5454
$data['explode'] = ($data['style'] === 'form');
5555
}

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3+
error_reporting(-1);
4+
35
require __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)