cybertk / cybertk/ramlev

Method::getExampleByType is broken (beyond repair?)

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
CoffeeScript
Stars
30
Forks
5
PR merge metrics
No merged PRs in 30d

Description

1. Method::getExampleByType uses `$this->body` which doesn't exist. It should use `$this->bodyList` instead.
2. `$this->bodyList` contains `BodyInterface` elements, but unfortunately BodyInterface is rather limited, so it's impossible to check if it has an example without widening the interface.

Since the same thing can be achieved without using this helper method, I suggest this method is removed (or fixed).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.