Skip to content

Conversation

@anttikuuskoski
Copy link

Fixes #1

Prevents a PHP 7.4 warning:

array_key_exists(): The first argument should be either a string or an integer in openapi-data-mocker-server-middleware\src\Mock\OpenApiDataMockerRouteMiddleware.php on line 90

when customCallback returns an empty value.

Prevents a PHP 7.4 warning:

```
array_key_exists(): The first argument should be either a string or an integer in openapi-data-mocker-server-middleware\src\Mock\OpenApiDataMockerRouteMiddleware.php on line 90
```

when customCallback returns an empty value.
@ybelenko ybelenko merged commit 9e368b9 into ybelenko:master Mar 19, 2021
@ybelenko
Copy link
Owner

By some unknown reason I wasn't able to push to your branch, maybe because you used master branch. Thanks for the fix, I merged it directly to latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP warning from OpenApiDataMockerRouteMiddleware.phpL90 due to callback returning false

2 participants