src/PluginLoader.php
protected function validatePlugins(): void
    {
        $plugins = array_filter($this->getActivePlugins(), function ($plugin) {
            return file_exists(WPMU_PLUGIN_DIR.'/'.$plugin);
        });

        if (array_diff($plugins, $this->getActivePlugins())) {
            $this->setActivePlugins($plugins);
        }
    }
protected function validatePlugins(): void
    {
        $plugins = array_filter($this->getActivePlugins(), function ($plugin) {
            return file_exists(WPMU_PLUGIN_DIR.'/'.$plugin);
        });

        if (array_diff($plugins, $this->getActivePlugins())) {
            $this->setActivePlugins($plugins);
        }
    }
protected function validatePlugins ( ) : void { $ plugins = array_filter ( $ this -> getActivePlugins ( ) , function ( $ plugin ) { return file_exists ( WPMU_PLUGIN_DIR . '/' . $ plugin ) ; } ) ; if ( array_diff ( $ plugins , $ this -> getActivePlugins ( ) ) ) { $ this -> setActivePlugins ( $ plugins ) ; } }
Validate active plugins and deactivate invalid plugins.

@return void
Validate active plugins and deactivate invalid plugins .