Skip to content

Commit

Permalink
Revert PHP dependency back to >=PHP 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
serbanghita committed Nov 1, 2023
1 parent c2941a5 commit fa96dd5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Mobile_Detect.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Mobile_Detect.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author Nick Ilyin <[email protected]>
* @author: Victor Stanciu <[email protected]> (original author)
*
* @version 2.8.42
* @version 2.8.43
*
* Auto-generated isXXXX() magic methods.
* php -a examples/dump_magic_methods.php
Expand Down Expand Up @@ -255,7 +255,7 @@ class Mobile_Detect
/**
* Stores the version number of the current release.
*/
const VERSION = '2.8.42';
const VERSION = '2.8.43';

/**
* A type for the version() method indicating a string return value.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "5.6.*"
"php": ">=5.0.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8.36"
Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This is for local development. NOT WORKING ATM!
# Docker image of PHP 5.3 lacks ssl module and composer requires it
# Also this image lacks git which is at some point required during installation of phpunit deps.
services:
app:
image: php:5.6-cli-alpine3.8
image: php:5.3-cli
working_dir: /app
command: >
/bin/sh -c "
Expand All @@ -9,7 +12,5 @@ services:
curl -s https://getcomposer.org/download/2.0.0/composer.phar -o composer.phar &&
php composer.phar update --no-interaction --prefer-dist -vvv &&
vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-text --strict-coverage --stop-on-risky"
ports:
- "8000:8000"
volumes:
- .:/app

0 comments on commit fa96dd5

Please sign in to comment.