From 6d693c167365dd3d5f4aeeccce0168d52574c381 Mon Sep 17 00:00:00 2001 From: Peter Gribanov Date: Thu, 31 Oct 2019 11:17:05 +0300 Subject: [PATCH] GpsLabPaginationBundle::$extension can be false. Correct init GpsLabPaginationExtension. --- src/GpsLabPaginationBundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GpsLabPaginationBundle.php b/src/GpsLabPaginationBundle.php index 53eee8a..fd228b4 100644 --- a/src/GpsLabPaginationBundle.php +++ b/src/GpsLabPaginationBundle.php @@ -20,7 +20,7 @@ class GpsLabPaginationBundle extends Bundle */ public function getContainerExtension() { - if ($this->extension === null) { + if (!($this->extension instanceof GpsLabPaginationExtension)) { $this->extension = new GpsLabPaginationExtension(); }