Skip to content

Commit

Permalink
fixes #360 - raise php requirement to 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Nov 8, 2015
1 parent bec3a7a commit 90996f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: php
sudo: false

php:
- 5.3
- 5.4
- 5.5
- 5.6
Expand Down
4 changes: 2 additions & 2 deletions bin/pscss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

error_reporting(E_ALL);

if (version_compare(PHP_VERSION, '5.3') < 0) {
die('Requires PHP 5.3 or above');
if (version_compare(PHP_VERSION, '5.4') < 0) {
die('Requires PHP 5.4 or above');
}

include __DIR__ . '/../scss.inc.php';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"psr-4": { "Leafo\\ScssPhp\\Test\\": "tests/" }
},
"require": {
"php": ">=5.3.0"
"php": ">=5.4.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "~2.3",
Expand Down
4 changes: 2 additions & 2 deletions scss.inc.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
if (version_compare(PHP_VERSION, '5.3') < 0) {
die('Requires PHP 5.3 or above');
if (version_compare(PHP_VERSION, '5.4') < 0) {
die('Requires PHP 5.4 or above');
}

if (! class_exists('scssc', false)) {
Expand Down

0 comments on commit 90996f5

Please sign in to comment.