Skip to content

Commit

Permalink
Fix phpcs path on post install and update cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
hjrocha committed Jul 8, 2024
1 parent cc8be3f commit 9ba6927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN sed 's/.*short_open_tag.*=.*/short_open_tag=On/' /etc/php82/php.ini -i
RUN curl -sS https://getcomposer.org/installer | php
COPY composer.* ${COMPOSER_HOME}
RUN php composer.phar global install
RUN ${COMPOSER_HOME}/vendor/bin/phpcs --config-set installed_paths ${COMPOSER_HOME}/vendor/phpcompatibility/php-compatibility

# Cleanup and miscellaneous
RUN rm -rf /tmp/* && \
Expand Down
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,5 @@
"require-dev": {
"phpunit/phpunit": "^11.1",
"phpcompatibility/php-compatibility": "*"
},
"scripts": {
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility"
}
}
}

0 comments on commit 9ba6927

Please sign in to comment.