Skip to content

Commit

Permalink
Last php 5.4 compatible version
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Jun 18, 2019
1 parent b74bbdd commit b9cdea3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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.6.0 || ^7"
"php": "^5.4.0 || ^7"
},
"require-dev": {
"squizlabs/php_codesniffer": "~2.5",
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.6') < 0) {
throw new \Exception('scssphp requires PHP 5.6 or above');
if (version_compare(PHP_VERSION, '5.4') < 0) {

This comment has been minimized.

This comment has been minimized.

Copy link
@mahagr

mahagr Jun 19, 2019

Contributor

Basically you need to use 'Leafo\ScssPhp\Block' instead of Block::class to make it to work in PHP 5.4. :)

This comment has been minimized.

This comment has been minimized.

Copy link
@mahagr

mahagr Jun 19, 2019

Contributor

How did I miss those in the commit! Thanks!

This comment has been minimized.

Copy link
@robocoder

robocoder Jun 19, 2019

Author Collaborator

It was a much earlier commit. 6c8e5fe

throw new \Exception('scssphp requires PHP 5.4 or above');
}

if (! class_exists('Leafo\ScssPhp\Version', false)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
*/
class Version
{
const VERSION = 'v0.8.3';
const VERSION = 'v0.8.4';
}

0 comments on commit b9cdea3

Please sign in to comment.