Skip to content

Commit b43c73e

Browse files
committed
Replaced compiled PHP-AST with package version
1 parent 7b044ba commit b43c73e

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

Dockerfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-sphinx python-pip d
1010

1111
# XML needed by PHPCodeSniffer 2.3+
1212
# SQLite needed by Phan
13-
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php7.0-xml php7.0-sqlite
13+
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php7.0-xml php7.0-sqlite php-ast
1414

1515
# Install XDebug 2.4.0
1616
RUN wget https://github.com/xdebug/xdebug/archive/XDEBUG_2_4_0.tar.gz && \
@@ -77,17 +77,6 @@ RUN wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux
7777
mv BrowserStackLocal /usr/local/bin/ && \
7878
rm BrowserStackLocal-linux-x64.zip
7979

80-
# Install AST (for use with Phan)
81-
RUN git clone https://github.com/nikic/php-ast.git && \
82-
cd php-ast && \
83-
phpize && \
84-
./configure && \
85-
make install && \
86-
rm -Rf ../php-ast
87-
88-
COPY ast.ini /etc/php/mods-available/ast.ini
89-
RUN ln -s /etc/php/mods-available/ast.ini /etc/php/7.0/cli/conf.d/20-ast.ini
90-
9180
# Turn on PHP error reporting
9281
RUN sed -ri 's/^display_errors\s*=\s*Off/display_errors = On/g' /etc/php/7.0/fpm/php.ini && \
9382
sed -ri 's/^display_errors\s*=\s*Off/display_errors = On/g' /etc/php/7.0/cli/php.ini && \

ast.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)