Skip to content

Commit

Permalink
fix undefined index access
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Nov 16, 2018
1 parent 5182ba1 commit 51653a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec/Encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function attributes(): array
*/
public function __construct(array $data)
{
if (!isset($data['explode'])) {
if (!isset($data['explode']) && isset($data['style'])) {
// Spec: When style is form, the default value is true.
$data['explode'] = ($data['style'] === 'form');
}
Expand Down
2 changes: 2 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php

error_reporting(-1);

require __DIR__ . '/../vendor/autoload.php';

0 comments on commit 51653a1

Please sign in to comment.