From 0db2af8741a34e7de1722640bc4fa3d0295684f4 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Thu, 12 May 2016 10:27:34 -0400 Subject: [PATCH] Minify::VERSION tracks only the major version --- HISTORY.md | 1 + lib/Minify.php | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 90cc7ad..e693074 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,6 +10,7 @@ * Add config option for simply concatenating files * Add config option for altering creation of Minify/MinApp objects * Missing spec no longer redirects, instead links to docs +* Minify::VERSION is an int that tracks the major version number ## Version 2.2.1 (2014-10-30) * Builder styled with Bootstrap (thanks to help from acidvertigo) diff --git a/lib/Minify.php b/lib/Minify.php index b518490..1fe79a9 100644 --- a/lib/Minify.php +++ b/lib/Minify.php @@ -26,7 +26,15 @@ use Psr\Log\LoggerInterface; */ class Minify { - const VERSION = '3.0.0'; + /** + * API version + * + * This is only bumped when API breaks are done and should follow the major version of the library + * + * @var int + */ + const VERSION = 3; + const TYPE_CSS = 'text/css'; const TYPE_HTML = 'text/html'; // there is some debate over the ideal JS Content-Type, but this is the