Skip to content

Commit e110b2c

Browse files
committed
phpunit: fix entry anchor
1 parent df37ef0 commit e110b2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/docs/filters/phpunit/entries.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def additional_entries
1919
return [] if type == 'Guides'
2020

2121
css('h3').map do |node|
22-
[node.content.gsub('The ', ''), node['id']]
22+
[node.content.gsub('The ', ''), node['id'] || node.ancestors('section[id]').first['id']]
2323
end
2424
end
2525
end

0 commit comments

Comments
 (0)