From 4b31df52c3e7516323139058dd20e441638ca66f Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 12 Sep 2013 12:08:12 +0400 Subject: [PATCH] Add trait`s support to AutoloadBuilder. --- util/AutoloadBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/AutoloadBuilder.php b/util/AutoloadBuilder.php index 8adfaf6..1f9bd10 100644 --- a/util/AutoloadBuilder.php +++ b/util/AutoloadBuilder.php @@ -22,7 +22,7 @@ class AutoloadBuilder protected $handler; - protected $regex = '/\n(abstract |final )?(class|interface) ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/'; + protected $regex = '/\n(abstract |final )?(class|interface|trait) ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/'; public function __construct($autoload, $dirs = array(), $exclude = array()) {