Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit f414af9

Browse files
committed
fix plugin example
1 parent 293a719 commit f414af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/book/migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ class ObserverPluginManager extends AbstractPluginManager
11411141

11421142
public function validatePlugin($instance)
11431143
{
1144-
if (! $plugin instanceof ObserverInterface) {
1144+
if (! $instance instanceof ObserverInterface) {
11451145
throw new RuntimeException(sprintf(
11461146
'Invalid plugin "%s" created; not an instance of %s',
11471147
get_class($instance),
@@ -1195,7 +1195,7 @@ class ObserverPluginManager extends AbstractPluginManager
11951195

11961196
public function validate($instance)
11971197
{
1198-
if (! $plugin instanceof $this->instanceOf) {
1198+
if (! $instance instanceof $this->instanceOf) {
11991199
throw new InvalidServiceException(sprintf(
12001200
'Invalid plugin "%s" created; not an instance of %s',
12011201
get_class($instance),

0 commit comments

Comments
 (0)