Skip to content

Commit 5af3fd6

Browse files
authored
Upgrade phpdocumentor (#2649)
* phpDocumentor 3.5.3 → 3.7.1 Fix `PHP Parse error: syntax error, unexpected token ":" in phar:///private/tmp/ibexa-dxp-phpdoc/phpDocumentor.phar/vendor/twig/twig/src/Environment.php(418) : eval()'d code on line 58` * Use phpDocumentor 3.7.1 templates Only change template.js and template.css (seems to add some SVG diagram support)
1 parent 5f3f688 commit 5af3fd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/php_api_ref/phpdoc.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ DXP_EDITION='commerce'; # Edition from and for which the Reference is built
99
DXP_VERSION='4.6.*'; # Version from and for which the Reference is built
1010
DXP_ADD_ONS=(connector-ai connector-openai automated-translation); # Packages not included in $DXP_EDITION but added to the Reference, listed without their vendor "ibexa"
1111
DXP_EDITIONS=(oss headless experience commerce); # Available editions ordered by ascending capabilities
12-
PHPDOC_VERSION='3.5.3'; # Version of phpDocumentor used to build the Reference
12+
PHPDOC_VERSION='3.7.1'; # Version of phpDocumentor used to build the Reference
1313
PHPDOC_CONF="$(pwd)/tools/php_api_ref/phpdoc.dist.xml"; # Absolute path to phpDocumentor configuration file
1414
#PHPDOC_CONF="$(pwd)/tools/php_api_ref/phpdoc.dev.xml"; # Absolute path to phpDocumentor configuration file
15-
PHPDOC_TEMPLATE_VERSION='3.5.3'; # Version of the phpDocumentor base template set
15+
PHPDOC_TEMPLATE_VERSION='3.7.1'; # Version of the phpDocumentor base template set
1616
PHPDOC_DIR="$(pwd)/tools/php_api_ref/.phpdoc"; # Absolute path to phpDocumentor resource directory (containing the override template set)
1717

1818
PHP_BINARY="php -d error_reporting=`php -r 'echo E_ALL & ~E_DEPRECATED;'`"; # Avoid depreciation messages from phpDocumentor/Reflection/issues/529 when using PHP 8.2 or higher
@@ -106,7 +106,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then
106106
NAMESPACE_MAP="$NAMESPACE_MAP\n$NAMESPACES"
107107
PACKAGE_MAP="$PACKAGE_MAP\n'ibexa/$package': 'optional',"
108108
done;
109-
109+
110110
PACKAGE_MAP="{% set package_edition_map = {\n$PACKAGE_MAP\n} %}"
111111
NAMESPACE_MAP="{% set namespace_package_map = {\n$NAMESPACE_MAP\n} %}"
112112
{

0 commit comments

Comments
 (0)