CodingJungle Posted November 10, 2015 Share Posted November 10, 2015 Since 4.1 is pushing a minimum of php 5.4, can we get the autoloader to work with traits? /* is it a trait? */ if ( function_exists('trait_exists') and trait_exists( "{$namespace}\\{$class}", FALSE ) ) { return; } add this to the init.php after the interface_exists check on line 274, allows traits to be loaded and used (and for whatever reason, if they are still able to use php 5.3 with 4.1, then it wont error out looking for a non existent function ) Link to comment Share on other sites More sharing options...
CodingJungle Posted November 10, 2015 Author Share Posted November 10, 2015 and please, please, please, don't require the _ (since you can't extend or overload a trait, no need for the _ ) Link to comment Share on other sites More sharing options...
Management Matt Posted November 10, 2015 Management Share Posted November 10, 2015 Yes we do want to use traits. But it's not something that we're planning to do in the near future. Link to comment Share on other sites More sharing options...
CodingJungle Posted November 10, 2015 Author Share Posted November 10, 2015 So we have to wait till ips starts using traits to get 4 lines of code added to the autoloader so traits can be used? Link to comment Share on other sites More sharing options...
Mark Posted November 11, 2015 Share Posted November 11, 2015 I'll add this :) Link to comment Share on other sites More sharing options...
CodingJungle Posted November 11, 2015 Author Share Posted November 11, 2015 Thanks mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.