Skip to content

Commit 343c751

Browse files
author
Martin Lonský
committed
Fixes zendframework#107 AbstractPluginManager plugin validation of empty serverice
1 parent f39c953 commit 343c751

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AbstractPluginManager.php

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ public function get($name, array $options = null)
150150
*/
151151
public function validate($instance)
152152
{
153+
if($instance === null){
154+
return;
155+
}
153156
if (method_exists($this, 'validatePlugin')) {
154157
trigger_error(sprintf(
155158
'%s::validatePlugin() has been deprecated as of 3.0; please define validate() instead',

0 commit comments

Comments
 (0)