diff --git a/js/language/php.js b/js/language/php.js
index <HASH>..<HASH> 100644
--- a/js/language/php.js
+++ b/js/language/php.js
@@ -96,9 +96,10 @@ Rainbow.extend('php', [
             1: {
                 'name': 'support.class',
                 'pattern': /\w+/g
-            }
+            },
+            2: 'keyword.static'
         },
-        'pattern': /([\w\\]*?)::\b/g
+        'pattern': /([\w\\]*?)(::)(?=\b|\$)/g
     },
     {
         'matches': {
Better matching for classes when making static calls