sjelfull / craft-audit

Audit log for Craft 3
https://superbig.co
Other
20 stars 11 forks source link

PHP 7.0 compatibility #47

Closed jlawrence-yellostudio closed 4 years ago

jlawrence-yellostudio commented 5 years ago

Installing on PHP 7.0.x results in an error as "public const" is not supported.

Main Audit.php plugin class has two of these are the top:

public const PERMISSION_VIEW_LOGS  = 'audit-view-logs';
public const PERMISSION_CLEAR_LOGS = 'audit-clear-logs';

Removing the public visibility fixes for 7.0, but I'm not sure what the default is for this in 7.1.