Skip to content

Commit

Permalink
Merge pull request #92 from andrewandante/bugfix/abstract_classes
Browse files Browse the repository at this point in the history
fix use statement to render proper class flags
  • Loading branch information
andrewandante authored Jan 4, 2021
2 parents 7ef5066 + f8b49b2 commit 84e36fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/en/
/htdocs
/data
/.vagrant/
1 change: 1 addition & 0 deletions conf/themes/silverstripe/class.twig
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
{% endblock %}

{% block class_signature -%}
{% if class.final %}final {% endif %}
{% if not class.interface and class.abstract %}abstract {% endif %}
{{ class_category_name(class.getCategoryId()) }}
<strong>{{ class.shortname|raw }}</strong>
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/SilverStripeNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SilverStripe\ApiDocs\Parser;

use Prophecy\Doubler\Generator\Node\ClassNode;
use PhpParser\Node\Stmt\Class_ as ClassNode;
use Doctum\Parser\NodeVisitor;
use PhpParser\Node\Stmt\ClassLike as ClassLikeNode;
use PhpParser\Node\Stmt\Property as PropertyNode;
Expand Down

0 comments on commit 84e36fe

Please sign in to comment.