Skip to content

Commit

Permalink
Merge pull request #2 from mtrdesign/update_composer_requirements
Browse files Browse the repository at this point in the history
Updated PHP requirements in Composer file.
  • Loading branch information
akolevutd authored Dec 29, 2020
2 parents 19dc34a + 2f6a7d5 commit b62425e
Show file tree
Hide file tree
Showing 7 changed files with 936 additions and 1,503 deletions.
39 changes: 0 additions & 39 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1 @@
preset: psr2

enabled:
- concat_without_spaces
- ereg_to_preg
- extra_empty_lines
- short_array_syntax
- method_separation
- multiline_array_trailing_comma
- no_empty_lines_after_phpdocs
- operators_spaces
- ordered_use
- phpdoc_align
- phpdoc_indent
- phpdoc_inline_tag
- phpdoc_no_access
- phpdoc_no_package
- phpdoc_order
- phpdoc_scalar
- phpdoc_separation
- phpdoc_to_comment
- phpdoc_trim
- phpdoc_type_to_var
- phpdoc_types
- phpdoc_var_without_name
- return
- self_accessor
- short_bool_cast
- single_quote
- spaces_after_semicolon
- spaces_cast
- standardize_not_equal
- ternary_spaces
- trim_array_spaces
- unalign_double_arrow
- unalign_equals
- unary_operators_spaces
- unneeded_control_parentheses
- unused_use
- whitespacy_lines
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
language: php

php:
- 7.1
- 7.4

env:
global:
- XDEBUG_MODE=coverage

cache:
directories:
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM php:7.4-cli

RUN apt-get update && apt-get install -y zip unzip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

COPY . /app
WORKDIR /app

CMD ["php"]
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"license": "MIT",
"minimum-stability": "stable",
"require": {
"php": "^7.1.8",
"php": "^7.4|^8.0",
"ext-json": "*",
"aws/aws-sdk-php": "^3.100",
"nesbot/carbon": "^2.19"
},
"require-dev": {
"mockery/mockery": "^1.2",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^7.5",
"squizlabs/php_codesniffer": "^3.4"
},
Expand Down
Loading

0 comments on commit b62425e

Please sign in to comment.