markstory / sphinxcontrib-phpdomain

A PHP domain for sphinx. Allows you to annotate PHP objects in your sphinx docs.
Other
19 stars 15 forks source link

Update for Sphinx 2.0.1 #23

Closed romaninsh closed 5 years ago

romaninsh commented 5 years ago

To avoid this error:

  File "/usr/local/lib/python3.7/site-packages/sphinxcontrib/phpdomain.py", line 284, in add_target_and_index
    self.env.warn(
AttributeError: 'BuildEnvironment' object has no attribute 'warn'

Solution from javascript domain: https://github.com/sphinx-doc/sphinx/blob/master/sphinx/domains/javascript.py#L112

markstory commented 5 years ago

Published 0.6.0