Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Task/Collect/MethodCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class MethodCollector {
* - 'description': The description from the method's docblock first line.
*/
public function collectMethods($name) {
if (!$name) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks unrelated to #302 - I think you mentioned another bug you encountered. Do you remember how to reproduce it?

return [];
}

// Get a reflection class for the interface.
$reflection = new \ReflectionClass($name);
$methods = $reflection->getMethods();
Expand Down
2 changes: 1 addition & 1 deletion Task/Collect/PluginTypesCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ protected function addPluginBaseClass(&$data) {
*/
protected function analysePluginTypeBaseClassFromDefiningModule($data) {
// Bail if the interface doesn't have an 'Interface' suffix.
if (!preg_match('@Interface$@', $data['plugin_interface'])) {
if (!$data['plugin_interface'] || !preg_match('@Interface$@', $data['plugin_interface'])) {
return;
}

Expand Down