PHP-YUI-Compressor icon indicating copy to clipboard operation
PHP-YUI-Compressor copied to clipboard

Strict standards: Accessing static property as non static

Open ghost opened this issue 13 years ago • 2 comments

Running PHP 5.4.5

YUICompressor::$JAR_PATH @ line 21 YUICompressor::$TEMP_FILES_DIR @ line 22 YUICompressor::$JAR_PATH @ line 59 YUICompressor::$TEMP_FILES_DIR @ line 65

ghost avatar Aug 04 '12 14:08 ghost

Take out 'static' from lines 7 & 8, no need for them to be there:

private static $JAR_PATH;
private static $TEMP_FILES_DIR;

to

private $JAR_PATH;
private $TEMP_FILES_DIR;

works for me :-)

kevinwarren avatar Apr 11 '13 21:04 kevinwarren

implemented in https://github.com/bkdotcom/PHP-YUI-Compressor

bkdotcom avatar Jul 25 '13 18:07 bkdotcom