Skip to content
Snippets Groups Projects

Feature/storage test

Merged Krzysztof Dyszczyk requested to merge feature/storage-test into master
4 files
+ 26
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -17,7 +17,7 @@ class WordpressFilterStorage implements PluginStorage {
* @param AbstractPlugin $object
*/
public function add_to_storage( $class, $object ) {
add_filter( self::STORAGE_FILTER_NAME, function ( $plugins ) use ( $class, $object ) {
add_filter( self::STORAGE_FILTER_NAME, static function ( $plugins ) use ( $class, $object ) {
if ( isset( $plugins[ $class ] ) ) {
throw new Exception\ClassAlreadyExists( "Class {$class} already exists" );
}
Loading